/* =============================================
   AUTH & KYC STYLES
   ============================================= */

/* =============================================
   AUTH PAGE LAYOUT
   ============================================= */
.auth-page {
  display: flex;
  min-height: calc(100vh - var(--header-h));
}
.auth-page-simple {
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  padding: 48px 24px;
}
.auth-left {
  flex: 0 0 45%;
  background: linear-gradient(150deg, var(--primary) 0%, #1e1b4b 60%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}
.auth-left-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}
.auth-logo .logo-text { color: #fff; }
.auth-logo img { filter: brightness(0) invert(1); opacity: .9; }
.auth-promo h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.auth-promo p { color: rgba(255,255,255,.55); font-size: 1rem; margin-bottom: 32px; }
.auth-promo-features { display: flex; flex-direction: column; gap: 14px; }
.promo-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}
.promo-feat span { font-size: 1.2rem; width: 28px; text-align: center; }

/* Decorative circles */
.auth-left-decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.decor-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.1);
}
.decor-circle.c1 { width: 400px; height: 400px; bottom: -150px; right: -100px; }
.decor-circle.c2 { width: 250px; height: 250px; top: -80px;    left: -60px;  background: rgba(245,158,11,.05); }
.decor-circle.c3 { width: 150px; height: 150px; top: 50%;      right: 10%;   }

/* Auth Right */
.auth-right {
  flex: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}
.auth-form-wrap {
  width: 100%;
  max-width: 460px;
}
.auth-form-header { margin-bottom: 32px; }
.auth-form-header h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.auth-form-header p { color: var(--text-muted); font-size: .95rem; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.forgot-link { font-size: .8rem; color: var(--secondary); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

/* Password field with toggle */
.input-password-wrap { position: relative; }
.input-password-wrap .form-control { padding-right: 48px; }
.toggle-password {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* Password strength */
.pwd-strength { display: flex; align-items: center; gap: 10px; }
.pwd-strength-bar {
  flex: 1; height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.pwd-strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: all .3s ease;
  width: 0;
}
.pwd-strength-label { font-size: .78rem; font-weight: 700; min-width: 50px; }

/* Form check */
.form-check-row { margin: 4px 0; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.form-check input[type="checkbox"] { margin-top: 2px; cursor: pointer; accent-color: var(--secondary); }
.req { color: var(--danger); }

/* Account type toggle */
.account-type-toggle {
  display: flex;
  gap: 8px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 6px;
  margin-bottom: 8px;
}
.type-btn {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-muted);
  transition: all .2s;
  text-align: center;
}
.type-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* KYC notice */
.kyc-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(99,102,241,.06);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius-sm);
  font-size: .88rem;
}
.kyc-notice > span { font-size: 1.2rem; flex-shrink: 0; }
.kyc-notice strong { display: block; margin-bottom: 4px; color: var(--text-primary); }
.kyc-notice p { margin: 0; color: var(--text-muted); }

/* Auth divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 8px 0;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  position: relative;
  background: var(--bg);
  padding: 0 16px;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth-alt { text-align: center; font-size: .9rem; color: var(--text-muted); }
.auth-link { color: var(--secondary); font-weight: 700; }
.auth-link:hover { text-decoration: underline; }

/* =============================================
   KYC PAGE STYLES
   ============================================= */
.kyc-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.kyc-status-icon { font-size: 2rem; flex-shrink: 0; }
.kyc-status-banner h3 { margin-bottom: 6px; }
.kyc-status-banner p { margin: 0; font-size: .9rem; }
.kyc-pending  { background: #fffbeb; border: 1px solid #fcd34d; }
.kyc-pending h3 { color: #92400e; }
.kyc-pending p { color: #78350f; }
.kyc-approved { background: #ecfdf5; border: 1px solid #6ee7b7; }
.kyc-approved h3 { color: #065f46; }
.kyc-approved p { color: #047857; }
.kyc-rejected { background: #fef2f2; border: 1px solid #fca5a5; }
.kyc-rejected h3 { color: #991b1b; }
.kyc-rejected p { color: #7f1d1d; }

.kyc-why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}
.kyc-why-card h3 { margin-bottom: 20px; }
.kyc-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kyc-why-item { display: flex; gap: 12px; align-items: flex-start; }
.kyc-why-item > span { font-size: 1.4rem; flex-shrink: 0; }
.kyc-why-item strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.kyc-why-item p { font-size: .8rem; color: var(--text-muted); margin: 0; }

.kyc-form {}
.kyc-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.kyc-upload-item { position: relative; }
.kyc-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  background: var(--bg-muted);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.kyc-upload-label:hover { border-color: var(--secondary); background: rgba(99,102,241,.04); }
.kyc-upload-icon { font-size: 2.2rem; }
.kyc-upload-label strong { font-size: .9rem; }
.kyc-upload-label p { font-size: .78rem; color: var(--text-muted); margin: 0; }
.kyc-upload-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  margin-top: 4px;
}
.kyc-file-name { font-size: .72rem; color: var(--text-muted); word-break: break-all; }
.kyc-upload-item input[type="file"] { display: none; }
.kyc-preview { text-align: center; }

.kyc-tips {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.kyc-tips h4 { margin-bottom: 12px; font-size: .9rem; }
.kyc-tips ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.kyc-tips li { font-size: .82rem; color: var(--text-secondary); }

/* =============================================
   RESPONSIVE AUTH
   ============================================= */
@media (max-width: 1024px) {
  .auth-left { flex: 0 0 40%; padding: 48px 32px; }
}
@media (max-width: 768px) {
  .auth-page { flex-direction: column; }
  .auth-left { padding: 40px 24px 32px; flex: none; min-height: auto; }
  .auth-left-content { max-width: 100%; }
  .auth-promo-features { display: none; }
  .auth-promo h2 { font-size: 1.5rem; }
  .auth-right { padding: 32px 20px; }
  .kyc-upload-grid { grid-template-columns: 1fr; }
  .kyc-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .auth-form-wrap { max-width: 100%; }
}
