.fwpl-modal { display: none; position: fixed; inset: 0; z-index: 999999; align-items: center; justify-content: center; }
.fwpl-modal.show { display: flex; }
.fwpl-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fwpl-modal-box { position: relative; width: 90%; max-width: 440px; background: #1A1C20; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border-radius: 0.25rem; padding: 2.5rem; display: flex; flex-direction: column; color: #F0F0F0; box-sizing: border-box; }
.fwpl-close { position: absolute; top: 1.25rem; right: 1.5rem; color: rgba(255,255,255,0.4); font-size: 1.5rem; cursor: pointer; transition: color 0.2s; line-height: 1; border: none; background: transparent; padding: 0;}
.fwpl-close:hover { color: #fff; }

.fwpl-header { text-align: center; margin-bottom: 2rem; }
.fwpl-icon-wrap { display: inline-block; padding: 0.75rem; border-radius: 0; background: linear-gradient(to bottom right, rgba(245, 158, 11, 0.2), transparent); border: 1px solid rgba(245, 158, 11, 0.3); margin-bottom: 1rem; }
.fwpl-icon { width: 1.5rem; height: 1.5rem; color: #f59e0b; display: block; }
.fwpl-title { font-size: 1.875rem; margin: 0 0 0.25rem 0; font-weight: normal; color: #F0F0F0; line-height: 1.1; }
.fwpl-subtitle { color: rgba(255,255,255,0.4); font-size: 0.875rem; letter-spacing: 0.025em; margin: 0; }

.fwpl-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 2rem; }
.fwpl-tab-btn { flex: 1; padding: 0 0 1rem 0; font-size: 0.875rem; font-weight: 500; border: none; border-bottom: 2px solid transparent; background: transparent; color: rgba(255,255,255,0.4); cursor: pointer; transition: color 0.2s; margin: 0; }
.fwpl-tab-btn.active { border-bottom-color: #f59e0b; color: #fff; }
.fwpl-tab-btn:hover:not(.active) { color: #fff; }

.fwpl-tab-content { display: none; }
.fwpl-tab-content.active { display: block; }

.fwpl-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; font-weight: 600; text-align: left; }

.fwpl-input-group { display: flex; margin-bottom: 1.5rem; }
.fwpl-prefix-select { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-right: none; border-radius: 0.25rem 0 0 0.25rem !important; padding: 0.75rem 0.5rem 0.75rem 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); outline: none; cursor: pointer; appearance: auto; flex: 0 0 35%; max-width: 100px; transition: all 0.2s; }
.fwpl-prefix-select:focus { border-color: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); z-index: 1; }
.fwpl-prefix-select option { background: #1A1C20; color: #F0F0F0; }
.fwpl-input, .fwpl-input-no-mb { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 0.75rem 1rem; font-size: 0.875rem; color: #F0F0F0; outline: none; transition: all 0.2s; box-sizing: border-box; }
.fwpl-input { width: 100%; border-radius: 0.25rem !important; margin-bottom: 1.5rem; }
.fwpl-input-no-mb { width: 100%; border-radius: 0 0.25rem 0.25rem 0 !important; margin: 0; flex: 1; position: relative; z-index: 0; }
.fwpl-input:focus, .fwpl-input-no-mb:focus { border-color: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); z-index: 1; position: relative; }

.fwpl-password-wrap { position: relative; margin-bottom: 1.5rem; }
.fwpl-password-wrap .fwpl-input { margin-bottom: 0 !important; padding-right: 2.5rem; }
.fwpl-toggle-password { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); cursor: pointer; color: rgba(255,255,255,0.4); display: flex; align-items: center; transition: color 0.2s; }
.fwpl-toggle-password:hover { color: rgba(255,255,255,0.8); }
.fwpl-toggle-password svg { width: 1.25rem; height: 1.25rem; }

.fwpl-link { font-size: 10px; color: #f59e0b; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.2s; }
.fwpl-link:hover { color: #fbbf24; text-decoration: underline; }

.fwpl-btn { width: 100%; background: #f59e0b; color: #1A1C20; font-weight: 700; padding: 1rem; border: none; border-radius: 0.25rem !important; letter-spacing: 0.1em; font-size: 0.75rem; text-transform: uppercase; box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.2); cursor: pointer; transition: background 0.2s; margin: 0; display: inline-flex; align-items: center; justify-content: center; }
.fwpl-btn:hover:not(:disabled) { background: #fbbf24; }
.fwpl-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.fwpl-divider { display: flex; align-items: center; padding: 0.5rem 0 1.5rem 0; }
.fwpl-line { flex-grow: 1; border-top: 1px solid rgba(255,255,255,0.05); height: 0; }
.fwpl-divider span { margin: 0 1rem; font-size: 10px; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.1em; }

.fwpl-btn-secondary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 0.75rem; border-radius: 0.25rem !important; cursor: pointer; transition: background 0.2s; color: #F0F0F0; font-size: 11px; font-weight: 500; letter-spacing: 0.025em; text-transform: uppercase; margin: 0; }
.fwpl-btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,0.1); }
.fwpl-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.fwpl-msg { padding: 0.75rem; border-radius: 0.25rem !important; margin-bottom: 1.5rem; font-size: 0.875rem; text-align: center; display: none; }
.fwpl-msg.error { color: #ef4444; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); }
.fwpl-msg.success { color: #10b981; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }

.fwpl-otp-group { display: flex; gap: 8px; margin-bottom: 1.5rem; justify-content: space-between; }
.fwpl-otp-input { width: 44px; height: 48px; text-align: center; font-size: 1.25rem; font-weight: 700; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.25rem; color: #F0F0F0; outline: none; transition: all 0.2s; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.fwpl-otp-input:focus { border-color: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.3), inset 0 2px 4px rgba(0,0,0,0.1); z-index: 1; position: relative; background: rgba(255,255,255,0.1); }
.fwpl-otp-input::-webkit-outer-spin-button, .fwpl-otp-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.fwpl-spinner { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid rgba(26, 28, 32, 0.2); border-top-color: currentColor; border-radius: 50%; animation: fwpl-spin 1s linear infinite; }
.fwpl-btn-secondary .fwpl-spinner { border-color: rgba(240, 240, 240, 0.2); border-top-color: currentColor; }
@keyframes fwpl-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    .fwpl-modal-box { width: 95%; padding: 1.5rem; border-radius: 0.5rem; }
    .fwpl-title { font-size: 1.5rem; }
    .fwpl-subtitle { font-size: 0.75rem; }
    .fwpl-tab-btn { font-size: 0.75rem; padding-bottom: 0.75rem; }
    .fwpl-btn { padding: 0.875rem; }
    .fwpl-input, .fwpl-input-no-mb, .fwpl-prefix-select { padding: 0.625rem 0.75rem; font-size: 0.875rem; }
    .fwpl-prefix-select { max-width: 80px; }
}
