/* ════════════════════════════════════════════════════════════════════════════
   auth.css — Loaded on AUTH pages only (login / register / forgot-password)
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Layout ── */
.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 0;
}
.auth-container {
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 100vh;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Branding Column ── */
.auth-brand {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 100%);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.25) 0%, transparent 70%);
}
.auth-brand-copy { position: relative; z-index: 1 }
.auth-brand-copy h2 {
  font-size: 34px; font-weight: 800; color: white;
  letter-spacing: -.03em; line-height: 1.15; margin-bottom: 14px;
}
.auth-brand-copy p { font-size: 18px; font-weight: 300; color: rgba(255,255,255,.6); line-height: 1.6 }
.auth-brand-stats { display: flex; gap: 32px; position: relative; z-index: 1; margin-top:16px; }
.auth-stat { display: flex; flex-direction: column; gap: 4px }
.auth-stat strong { font-size: 26px; font-weight: 800; color: white; letter-spacing: -.02em }
.auth-stat span { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.5) }
.auth-brand-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.auth-brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,.75);
}

/* ── Form Column ── */
.auth-form-wrap {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.auth-form-inner { width: 100%; max-width: 420px }
.auth-title { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin-bottom: 8px }
.auth-sub { font-size: 18px; font-weight: 300; color: var(--ink-soft); margin-bottom: 32px }
.auth-sub a { color: var(--blue); font-weight: 500; text-decoration: none }
.auth-sub a:hover { text-decoration: underline }

/* ── Notices ── */
.auth-notice {
  background: #DCFCE7; border: 1px solid #86EFAC; color: #166534;
  border-radius: 10px; padding: 12px 16px; font-size: 15px; margin-bottom: 24px;
}
.auth-error {
  background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B;
  border-radius: 10px; padding: 12px 16px; font-size: 15px; margin-bottom: 24px;
}
.auth-error div + div { margin-top: 4px }

/* ── Form Fields ── */
.auth-form { display: flex; flex-direction: column; gap: 20px }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.auth-field { display: flex; flex-direction: column; gap: 8px }
.auth-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.auth-field-link { font-weight: 400; color: var(--blue); text-decoration: none; font-size: 16px }
.auth-field-link:hover { text-decoration: underline }
.auth-field input {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.auth-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29,78,216,.1);
}
.auth-field input::placeholder { color: var(--ink-faint) }
.auth-input-wrap { position: relative }
.auth-input-wrap input { padding-right: 48px }
.auth-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  padding: 4px;
  transition: color .15s;
}
.auth-eye:hover { color: var(--ink) }

/* ── Checkbox ── */
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
}
.auth-check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  accent-color: var(--blue); cursor: pointer;
}
.auth-check a { color: var(--blue); text-decoration: none }
.auth-check a:hover { text-decoration: underline }

/* ── Submit Button ── */
.btn-auth-submit {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: white;
  background: var(--blue);
  border: none;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  width: 100%;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(29,78,216,.25);
  margin-top: 4px;
}
.btn-auth-submit:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(29,78,216,.3);
}

/* ── Simple Layout (Forgot Password) ── */
.auth-main--simple {
  background: var(--surface);
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-simple-wrap {
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.auth-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 8px 40px rgba(0,0,0,.06);
}
.auth-success-card {
  background: var(--white);
  border: 1.5px solid #BBF7D0;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,.06);
}
.auth-success-icon {
  width: 68px; height: 68px; background: #EFF6FF; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.auth-success-card h1 { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 12px }
.auth-success-card p {
  font-size: 16px; font-weight: 300; color: var(--ink-soft); line-height: 1.6; margin-bottom: 28px;
}

/* ── Activation Code Flow ── */
.auth-activate-icon {
  font-size: 52px;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1;
}
.auth-demo-notice {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #9A3412;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.auth-demo-notice strong { font-weight: 700 }
.auth-code-input {
  font-family: 'Outfit', monospace !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  text-align: center !important;
  letter-spacing: 16px !important;
  padding: 18px 16px !important;
  border-radius: 14px !important;
}
.auth-code-input::placeholder {
  letter-spacing: 10px;
  color: var(--ink-faint);
  font-weight: 400;
}

/* ── Auth Responsive ── */
@media (max-width: 900px) {
  .auth-container { grid-template-columns: 1fr }
  .auth-brand { display: none }
  .auth-form-wrap { min-height: 100vh }
}
@media (max-width: 480px) {
  .auth-form-wrap { padding: 40px 24px }
  .auth-row { grid-template-columns: 1fr }
  .auth-card, .auth-success-card { padding: 28px 24px }
}
