/* ============================================================
   RE Platform -- Auth & Portal Additional Styles
   ============================================================ */

/* 33. Auth Layout */
.auth-body { background: var(--off-white); min-height: 100vh; }
.auth-wrapper { display: flex; min-height: 100vh; }
.auth-left { width: 45%; flex-shrink: 0; background: var(--primary); position: relative; display: flex; flex-direction: column; justify-content: center; padding: 60px 48px; overflow: hidden; }
.auth-left::before { content: ''; position: absolute; top: -120px; right: -120px; width: 400px; height: 400px; border-radius: 50%; background: rgba(232,146,10,.12); }
.auth-left::after { content: ''; position: absolute; bottom: -80px; left: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.06); }
.auth-left-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,45,82,.9) 0%, rgba(15,45,82,.6) 100%); }
.auth-left-content { position: relative; z-index: 2; }
.auth-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 60px; }
.auth-brand i { font-size: 36px; color: var(--accent); }
.auth-brand span { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.auth-left-tagline h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--white); line-height: 1.25; margin-bottom: 16px; }
.auth-left-tagline p { font-size: 1rem; color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 48px; }
.auth-left-stats { display: flex; gap: 32px; }
.auth-stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.auth-stat-label { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 500; }
.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; overflow-y: auto; }
.auth-form-wrap { width: 100%; max-width: 440px; }
.auth-mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 800; color: var(--primary); text-decoration: none; margin-bottom: 32px; }
.auth-mobile-brand i { font-size: 24px; color: var(--accent); }
.auth-form-header { margin-bottom: 32px; }
.auth-form-title { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.auth-form-subtitle { font-size: 14px; color: var(--text-muted); }
.auth-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.auth-input-wrap { position: relative; }
.auth-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray); font-size: 14px; pointer-events: none; }
.auth-input { width: 100%; padding: 12px 14px 12px 40px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: var(--white); outline: none; transition: var(--transition-fast); font-family: var(--font-sans); }
.auth-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,45,82,.08); }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--gray); cursor: pointer; padding: 4px; }
.auth-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.auth-forgot-link { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-forgot-link:hover { color: var(--accent); }
.btn-auth-submit { width: 100%; padding: 13px; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition-fast); display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); }
.btn-auth-submit:hover { background: var(--accent); }
.auth-divider { text-align: center; margin: 24px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: var(--off-white); padding: 0 12px; font-size: 12px; color: var(--text-muted); }
.auth-alt-links { text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-alt-links a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-alt-links a:hover { color: var(--accent); }
.auth-terms { font-size: 13px; color: var(--text-muted); }
.auth-terms a { color: var(--primary); }

/* Role Selector */
.role-selector { display: flex; gap: 10px; }
.role-option { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 2px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast); text-align: center; }
.role-option i { font-size: 28px; color: var(--gray); }
.role-option span { font-size: 13px; font-weight: 700; color: var(--text); }
.role-option small { font-size: 11px; color: var(--text-muted); }
.role-option:hover { border-color: var(--primary); }
.role-option.active { border-color: var(--primary); background: rgba(15,45,82,.05); }
.role-option.active i { color: var(--primary); }

/* OTP */
.auth-otp-icon { font-size: 48px; color: var(--accent); margin-bottom: 16px; }
.otp-input-row { display: flex; gap: 10px; justify-content: center; }
.otp-digit { width: 52px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700; border: 2px solid var(--border); border-radius: var(--radius-sm); outline: none; transition: var(--transition-fast); }
.otp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,45,82,.08); }
.auth-link-btn { background: none; border: none; color: var(--primary); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* KYC Steps */
.kyc-steps { display: flex; align-items: center; justify-content: center; }
.kyc-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kyc-step-circle { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--gray); background: var(--white); transition: var(--transition-fast); }
.kyc-step.active .kyc-step-circle { border-color: var(--primary); color: var(--primary); background: rgba(15,45,82,.08); }
.kyc-step.done .kyc-step-circle { border-color: #38a169; background: #38a169; color: white; }
.kyc-step-label { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.kyc-step.active .kyc-step-label { color: var(--primary); }
.kyc-step-line { flex: 1; height: 2px; background: var(--border); min-width: 40px; margin: 0 8px; position: relative; top: -12px; }
.kyc-upload-box { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 24px; text-align: center; cursor: pointer; position: relative; transition: var(--transition-fast); }
.kyc-upload-box:hover { border-color: var(--primary); }
.kyc-upload-box i { font-size: 32px; color: var(--gray); }
.kyc-upload-box p { font-size: 13px; color: var(--text-muted); margin: 6px 0 0; }
.kyc-upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kyc-success-icon { font-size: 72px; color: #38a169; }

/* Portal Layout */
.portal-body { background: var(--off-white); }
.portal-quick-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; background: var(--white); border-radius: var(--radius-md); border: 1.5px solid var(--border); text-decoration: none; color: var(--text); transition: var(--transition-fast); text-align: center; }
.portal-quick-link i { font-size: 28px; color: var(--primary); }
.portal-quick-link span { font-size: 13px; font-weight: 600; }
.portal-quick-link:hover { border-color: var(--primary); background: rgba(15,45,82,.04); color: var(--primary); }
.portal-link { color: var(--primary); font-weight: 600; font-size: 13px; text-decoration: none; }
.portal-link:hover { color: var(--accent); }
.portal-logout-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--light-gray); color: var(--text-muted); text-decoration: none; transition: var(--transition-fast); }
.portal-logout-btn:hover { background: rgba(229,62,62,.1); color: #e53e3e; }
.portal-sidebar-toggle { background: none; border: none; font-size: 20px; color: var(--text); cursor: pointer; padding: 4px 8px; }

/* Alerts */
.alert-re { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; position: relative; }
.alert-re.alert-success { background: rgba(56,161,105,.1); border: 1px solid rgba(56,161,105,.3); color: #276749; }
.alert-re.alert-danger { background: rgba(229,62,62,.1); border: 1px solid rgba(229,62,62,.3); color: #c53030; }
.alert-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; opacity: .6; }

/* Password Strength Meter */
.pwd-strength { margin-bottom: 0; }
.pwd-strength-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.pwd-strength-fill { height: 100%; width: 0; border-radius: 3px; transition: width .35s ease, background .35s ease; }
.pwd-strength-fill.pwd-weak   { background: #e53e3e; }
.pwd-strength-fill.pwd-fair   { background: var(--accent); }
.pwd-strength-fill.pwd-good   { background: #3182ce; }
.pwd-strength-fill.pwd-strong { background: #38a169; }
.pwd-strength-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.pwd-strength-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.pwd-strength-label.pwd-weak   { color: #e53e3e; }
.pwd-strength-label.pwd-fair   { color: #c07000; }
.pwd-strength-label.pwd-good   { color: #3182ce; }
.pwd-strength-label.pwd-strong { color: #38a169; }
.pwd-strength-rules { display: flex; gap: 8px; }
.pwd-rule { font-size: 11px; color: var(--gray); font-weight: 500; }
.pwd-rule.pwd-rule-pass { color: #38a169; }
.pwd-match-msg { font-size: 12px; margin-top: 5px; font-weight: 500; }

/* Auth field validation */
.auth-input-error { border-color: #e53e3e !important; }
.auth-field-error { font-size: 12px; color: #e53e3e; margin-top: 4px; font-weight: 500; }

/* Forgot Password success state */
.auth-success-ring { width: 64px; height: 64px; border-radius: 50%; background: rgba(56,161,105,.1); border: 2px solid rgba(56,161,105,.35); display: flex; align-items: center; justify-content: center; }
.auth-success-ring i { font-size: 26px; color: #38a169; }
.fp-success-box { text-align: center; padding: 24px; background: rgba(56,161,105,.05); border: 1.5px solid rgba(56,161,105,.22); border-radius: var(--radius-md); margin: 12px 0; }
.fp-success-envelope { font-size: 44px; color: #38a169; display: block; margin-bottom: 10px; }
.fp-success-msg { font-size: 14px; color: #276749; font-weight: 500; margin-bottom: 6px; }
.fp-success-hint { font-size: 13px; color: var(--text-muted); margin: 0; }
.btn-auth-outline { background: var(--white) !important; color: var(--primary) !important; border: 2px solid var(--primary) !important; }
.btn-auth-outline:hover { background: var(--primary) !important; color: var(--white) !important; }

/* KYC Onboarding Layout */
.kyc-onboarding { }
.kyc-progress-wrap { }
.kyc-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kyc-step-circle { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--gray); transition: var(--transition-fast); }
.kyc-step.active .kyc-step-circle { border-color: var(--primary); color: var(--primary); background: rgba(15,45,82,.07); }
.kyc-step.done .kyc-step-circle   { border-color: #38a169; background: #38a169; color: #fff; font-size: 13px; }
.kyc-step-label { font-size: 11px; font-weight: 600; color: var(--text-muted); white-space: nowrap; text-align: center; }
.kyc-step.active .kyc-step-label  { color: var(--primary); }
.kyc-step.done .kyc-step-label    { color: #38a169; }
.kyc-step-line { flex: 1; height: 2px; min-width: 28px; margin: 20px 5px 0; background: var(--border); transition: background .3s; }
.kyc-step-line.done { background: #38a169; }

/* KYC Form Card */
.kyc-form-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.kyc-card-header { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.kyc-card-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(15,45,82,.08); display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--primary); flex-shrink: 0; }
.kyc-card-icon-opt { background: rgba(232,146,10,.1); color: var(--accent); }
.kyc-card-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.kyc-card-subtitle { font-size: 13px; color: var(--text-muted); margin: 0; }
.kyc-opt-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: rgba(232,146,10,.12); color: #b7791f; text-transform: uppercase; letter-spacing: .5px; line-height: 1.8; }

/* KYC Upload */
.kyc-upload-box { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 18px 12px; text-align: center; cursor: pointer; position: relative; transition: var(--transition-fast); overflow: hidden; }
.kyc-upload-box:hover { border-color: var(--primary); background: rgba(15,45,82,.02); }
.kyc-upload-box.kyc-upload-done { border-color: #38a169; border-style: solid; background: rgba(56,161,105,.04); }
.kyc-upload-icon { font-size: 26px; color: var(--gray); display: block; margin-bottom: 6px; }
.kyc-upload-label { font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 3px; }
.kyc-upload-hint { font-size: 11px; color: var(--text-muted); margin: 0; }
.kyc-upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.kyc-upload-preview { width: 100%; max-height: 72px; object-fit: contain; margin-top: 8px; border-radius: 4px; display: block; }

/* KYC Actions */
.kyc-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.btn-kyc-next { display: inline-flex; align-items: center; padding: 11px 26px; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: var(--transition-fast); font-family: var(--font-sans); }
.btn-kyc-next:hover { background: var(--accent); color: var(--white); }
.btn-kyc-back { display: inline-flex; align-items: center; padding: 11px 18px; background: var(--off-white); color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; text-decoration: none; transition: var(--transition-fast); }
.btn-kyc-back:hover { border-color: var(--primary); color: var(--primary); }
.btn-kyc-skip { font-size: 13px; color: var(--text-muted); text-decoration: none; font-weight: 500; }
.btn-kyc-skip:hover { color: var(--primary); }

/* KYC Status / Complete Screen */
.kyc-status-card { padding: 36px 16px; }
.kyc-status-ring { width: 92px; height: 92px; border-radius: 50%; background: rgba(232,146,10,.09); border: 3px solid rgba(232,146,10,.28); display: flex; align-items: center; justify-content: center; }
.kyc-status-icon { font-size: 38px; }
.kyc-status-pending  { color: var(--accent); }
.kyc-status-approved { color: #38a169; }
.kyc-status-title { font-size: 1.45rem; font-weight: 800; color: var(--text); margin: 12px 0 8px; }
.kyc-status-msg { font-size: 14px; color: var(--text-muted); max-width: 360px; margin: 0 auto 20px; line-height: 1.6; }
.kyc-status-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.kyc-badge { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.kyc-badge-done    { background: rgba(56,161,105,.1);   color: #276749; }
.kyc-badge-pending { background: rgba(232,146,10,.12);  color: #b7791f; }

/* KYC Banner */
.kyc-banner { display: flex; align-items: center; gap: 16px; background: rgba(232,146,10,.08); border: 1.5px solid rgba(232,146,10,.3); border-radius: var(--radius-md); padding: 16px 20px; flex-wrap: wrap; }
.kyc-banner-icon { font-size: 36px; color: var(--accent); flex-shrink: 0; }
.kyc-banner-text { flex: 1; }
.kyc-banner-text strong { display: block; color: var(--text); margin-bottom: 2px; }
.kyc-banner-text p { font-size: 13px; color: var(--text-muted); margin: 0; }
.kyc-banner-btn { flex-shrink: 0; white-space: nowrap; }

/* Booking Detail */
.booking-property-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.booking-property-img { width: 140px; height: 100px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.booking-property-img img { width: 100%; height: 100%; object-fit: cover; }
.portal-doc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--off-white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; transition: var(--transition-fast); }
.portal-doc-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(15,45,82,.04); }

/* Notifications */
.notification-item { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); transition: var(--transition-fast); }
.notification-item:last-child { border-bottom: none; }
.notification-item.unread { background: rgba(15,45,82,.02); }
.notification-item:hover { background: var(--off-white); }
.notification-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--light-gray); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--primary); flex-shrink: 0; }
.notification-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.notification-message { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.notification-time { font-size: 12px; color: var(--gray); }

/* Wallet */
.wallet-hero-card { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: var(--radius-lg); padding: 36px; position: relative; overflow: hidden; color: var(--white); }
.wallet-hero-bg { position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06); }
.wallet-hero-content { position: relative; z-index: 1; }
.wallet-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.wallet-amount { font-size: 2.5rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.wallet-held { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.wallet-currency { font-size: 12px; color: rgba(255,255,255,.5); }

/* Mobile */
@media (max-width: 991px) {
  .portal-sidebar { transform: translateX(-100%); }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-main { margin-left: 0 !important; }
  .portal-content { padding: 16px; }
  .auth-left { display: none !important; }
  .auth-right { min-height: 100vh; width: 100%; }
  .auth-form-wrap { max-width: 100%; }
}
