/* ============================================================
   auth.css  —  Login & Forgot Password pages
   ============================================================ */

:root {
  --brand-from: #069ab4;
  --brand-to:   #048a9f;
  --brand-mid:  #057f96;
  --surface:    #ffffff;
  --text-primary:   #111827;
  --text-secondary: #6b7280;
  --border:     #e5e7eb;
  --input-bg:   #f9fafb;
  --radius-md:  10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(6,154,180,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #f3f4f6;
  color: var(--text-primary);
  min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────── */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Brand / Left Panel ─────────────────────────────── */
.auth-brand {
  flex: 0 0 52%;
  background: linear-gradient(180deg, #069ab4 0%, #f6e7e4 100.07%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.brand-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 440px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .22);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.5px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: .5rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}
.brand-logo i { font-size: 1.4rem; }

.brand-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2rem;
  letter-spacing: -.5px;
}

.brand-sub {
  font-size: 1rem;
  opacity: .8;
  line-height: 1.6;
  margin-top: .8rem;
}

.brand-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: .1rem; }
.stat-num  { font-size: 1.8rem; font-weight: 800; }
.stat-label { font-size: .8rem; opacity: .7; }

/* Recovery Steps */
.recovery-steps { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  opacity: .55;
  transition: opacity .3s;
}
.step-item.active { opacity: 1; }
.step-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.step-title  { font-weight: 600; font-size: .9rem; }
.step-desc   { font-size: .8rem; opacity: .75; margin-top: .15rem; }
.step-connector { width: 2px; height: 28px; background: rgba(255,255,255,.25); margin-left: 19px; }

/* Orbs */
.brand-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  animation: floatOrb 8s ease-in-out infinite;
}
.orb-1 { width: 350px; height: 350px; background: #f4a490; top: -80px; right: -80px; animation-delay: 0s; }
.orb-2 { width: 250px; height: 250px; background: #027d96; bottom: 60px; left: -60px; animation-delay: 3s; }
.orb-3 { width: 180px; height: 180px; background: #f8c9c0; bottom: -40px; right: 100px; animation-delay: 6s; }
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}

/* ── Form Panel / Right ─────────────────────────────── */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: #fff;
  overflow-y: auto;
}

.auth-form-inner {
  width: 100%;
  max-width: 420px;
}

.mobile-logo {
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-from);
}
.mobile-logo i { font-size: 1.5rem; }

.form-title    { font-size: 1.65rem; font-weight: 800; letter-spacing: -.5px; color: var(--text-primary); }
.form-subtitle { color: var(--text-secondary); font-size: .92rem; }

.form-label { font-size: .875rem; font-weight: 500; color: #374151; margin-bottom: .4rem; }

/* Icon input */
.input-group-icon { position: relative; }
.input-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  z-index: 5;
  font-size: .95rem;
}
.input-group-icon .form-control { padding-left: 2.4rem; }

.form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  font-size: .9rem;
  padding: .65rem .9rem;
  color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: var(--brand-from);
  box-shadow: 0 0 0 3px rgba(6,154,180,.14);
  background: #fff;
  outline: none;
}

/* Eye button */
.btn-eye {
  position: absolute;
  right: .75rem; top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  border: none; background: none;
  color: #9ca3af; cursor: pointer; padding: .25rem;
  transition: color .2s;
}
.btn-eye:hover { color: var(--brand-from); }

/* Primary button */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: .7rem 1.2rem;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 14px rgba(6,154,180,.35);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-primary-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6,154,180,.45);
  color: #fff;
}
.btn-primary-custom:active { transform: translateY(0); }
.btn-primary-custom:disabled { opacity: .7; }

/* Outline button */
.btn-outline-custom {
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: .7rem 1.2rem;
  font-weight: 500;
  font-size: .92rem;
  background: #fff;
  transition: border-color .2s, color .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-outline-custom:hover { border-color: var(--brand-from); color: var(--brand-from); }

/* Social buttons */
.btn-social {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: .6rem 1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-primary);
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.btn-social:hover { border-color: var(--brand-from); box-shadow: 0 2px 8px rgba(6,154,180,.15); transform: translateY(-1px); }

/* Divider */
.divider {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text-secondary); font-size: .8rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.form-link { color: var(--brand-from); text-decoration: none; font-weight: 500; }
.form-link:hover { color: var(--brand-mid); text-decoration: underline; }
.form-footer { color: var(--text-secondary); font-size: .88rem; }

.back-link {
  color: var(--text-secondary); text-decoration: none; font-size: .88rem; font-weight: 500;
  transition: color .2s;
}
.back-link:hover { color: var(--brand-from); }

/* Form icon badge */
.form-icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6,154,180,.12), rgba(4,138,159,.12));
  border: 1px solid rgba(6,154,180,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--brand-from);
}

/* Success animation */
.success-animation { position: relative; display: inline-block; }
.success-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
  box-shadow: 0 8px 24px rgba(16,185,129,.4);
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
  margin: 0 auto;
}
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-rings { position: absolute; inset: 0; pointer-events: none; }
.ring {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(16,185,129,.4);
  animation: ringOut 1.5s ease-out infinite;
}
.ring-1 { inset: -8px;  animation-delay: 0s; }
.ring-2 { inset: -18px; animation-delay: .4s; }
@keyframes ringOut { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }

/* Alert info */
.alert-info-custom {
  background: rgba(6,154,180,.07);
  border: 1px solid rgba(6,154,180,.2);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font-size: .85rem;
  color: #057f96;
}
