/**
 * StudySphere - Shared Auth Styles
 * Production-ready, accessible, theme-aware
 */

/* =============================================
   CSS VARIABLES — DARK (DEFAULT) + LIGHT OVERRIDE
   ============================================= */
:root {
  --color-bg:               #080d0b;
  --color-surface:          #0e1512;
  --color-surface-elevated: #141c18;
  --color-border:           rgba(109, 152, 134, 0.14);
  --color-border-focus:     rgba(109, 152, 134, 0.6);
  --color-text-primary:     #f0f4f2;
  --color-text-secondary:   #a1bfb2;
  --color-text-tertiary:    #6d9886;
  --color-text-muted:       #4d6b5e;
  --color-accent:           #6d9886;
  --color-accent-dark:      #4a6b5c;
  --color-accent-light:     #8fb5a3;
  --color-accent-glow:      rgba(109, 152, 134, 0.25);
  --color-success:          #4ca87a;
  --color-success-bg:       rgba(76, 168, 122, 0.08);
  --color-danger:           #d15555;
  --color-danger-bg:        rgba(209, 85, 85, 0.08);
  --color-warning:          #c9a84c;
  --color-warning-bg:       rgba(201, 168, 76, 0.08);

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.35);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.55);
  --shadow-accent: 0 8px 28px rgba(109,152,134,0.35);

  --transition-fast: 140ms cubic-bezier(0.4,0,0.2,1);
  --transition-base: 240ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 400ms cubic-bezier(0.4,0,0.2,1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Work Sans', system-ui, sans-serif;
}

/* Light theme overrides */
html.light-theme,
body.light-theme {
  --color-bg:               #f4f2ef;
  --color-surface:          #ffffff;
  --color-surface-elevated: #ffffff;
  --color-border:           rgba(109, 152, 134, 0.18);
  --color-border-focus:     rgba(109, 152, 134, 0.55);
  --color-text-primary:     #152219;
  --color-text-secondary:   #3d5c4a;
  --color-text-tertiary:    #6d9886;
  --color-text-muted:       #8aada0;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.10);
}

/* =============================================
   RESET + BASE
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   LAYOUT: TWO-COLUMN AUTH SHELL
   ============================================= */
.auth-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Left decorative panel */
.auth-panel-left {
  position: relative;
  flex: 0 0 52%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #080d0b 0%, #020503 100%);
}

body.light-theme .auth-panel-left {
  background: linear-gradient(155deg, #eae8e4 0%, #d8d5cf 100%);
}

/* Right form panel */
.auth-panel-right {
  flex: 1;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow-y: auto;
  position: relative;
}

/* Centered card layout (forgot password) */
.auth-shell--centered {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--color-bg);
  overflow: hidden;
}

/* =============================================
   DECORATIVE LEFT PANEL CONTENT
   ============================================= */
.panel-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: orbPulse 9s ease-in-out infinite;
}

.panel-orb--1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  top: 8%; left: 0%;
  opacity: 0.22;
}

.panel-orb--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--color-accent-dark) 0%, transparent 70%);
  bottom: 10%; right: -5%;
  opacity: 0.18;
  animation-delay: 3s;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.22); }
}

.panel-rings {
  position: absolute;
  width: 560px; height: 560px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.panel-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px dashed rgba(109, 152, 134, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.panel-ring--1 {
  width: 320px; height: 320px;
  animation: ringRotate 28s linear infinite;
}

.panel-ring--2 {
  width: 450px; height: 450px;
  animation: ringRotate 40s linear infinite reverse;
}

.panel-ring--3 {
  width: 560px; height: 560px;
  animation: ringRotate 55s linear infinite;
  opacity: 0.6;
}

@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating particles */
.panel-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  animation: particleRise 12s ease-in-out infinite;
  box-shadow: 0 0 12px var(--color-accent);
}

@keyframes particleRise {
  0%   { bottom: -8%; opacity: 0; transform: translateX(0) scale(0); }
  8%   { opacity: 0.8; transform: translateX(10px) scale(1); }
  50%  { opacity: 0.9; transform: translateX(-20px) scale(1.2); }
  90%  { opacity: 0.5; }
  100% { bottom: 108%; opacity: 0; transform: translateX(30px) scale(0.4); }
}

/* Generate 12 particles via data attrs via nth-child */
.particle:nth-child(1)  { width: 7px;  height: 7px;  left: 8%;  animation-delay: 0s;   animation-duration: 11s; }
.particle:nth-child(2)  { width: 5px;  height: 5px;  left: 18%; animation-delay: 1.2s; animation-duration: 13s; }
.particle:nth-child(3)  { width: 9px;  height: 9px;  left: 28%; animation-delay: 2s;   animation-duration: 10s; }
.particle:nth-child(4)  { width: 6px;  height: 6px;  left: 38%; animation-delay: 3s;   animation-duration: 14s; }
.particle:nth-child(5)  { width: 8px;  height: 8px;  left: 48%; animation-delay: 1.5s; animation-duration: 12s; }
.particle:nth-child(6)  { width: 6px;  height: 6px;  left: 58%; animation-delay: 2.8s; animation-duration: 11s; }
.particle:nth-child(7)  { width: 10px; height: 10px; left: 68%; animation-delay: 0.8s; animation-duration: 15s; }
.particle:nth-child(8)  { width: 5px;  height: 5px;  left: 78%; animation-delay: 3.5s; animation-duration: 9s;  }
.particle:nth-child(9)  { width: 8px;  height: 8px;  left: 88%; animation-delay: 2.2s; animation-duration: 13s; }
.particle:nth-child(10) { width: 7px;  height: 7px;  left: 13%; animation-delay: 4s;   animation-duration: 10s; }
.particle:nth-child(11) { width: 6px;  height: 6px;  left: 43%; animation-delay: 1s;   animation-duration: 12s; }
.particle:nth-child(12) { width: 9px;  height: 9px;  left: 73%; animation-delay: 3.2s; animation-duration: 11s; }

/* Brand content */
.brand-block {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 32px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.brand-logo {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-accent);
  animation: logoFloat 5s ease-in-out infinite;
  overflow: hidden;
  padding: 14px;
}

.brand-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.brand-tagline {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text-secondary);
  letter-spacing: 0.2px;
}

/* Feature list on signup panel */
.feature-list {
  list-style: none;
  margin-top: 32px;
  text-align: left;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  animation: slideFromLeft 0.5s ease both;
}

.feature-list li:nth-child(1) { animation-delay: 0.2s; }
.feature-list li:nth-child(2) { animation-delay: 0.35s; }
.feature-list li:nth-child(3) { animation-delay: 0.5s; }
.feature-list li:nth-child(4) { animation-delay: 0.65s; }
.feature-list li:nth-child(5) { animation-delay: 0.8s; }

@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.feature-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}

body.light-theme .feature-icon {
  background: rgba(109, 152, 134, 0.08);
}

/* =============================================
   FORM CONTAINER
   ============================================= */
.form-wrap {
  width: 100%;
  max-width: 440px;
  animation: slideFromRight 0.7s ease both;
}

@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.form-head {
  text-align: center;
  margin-bottom: 36px;
}

.form-head__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
  line-height: 1.15;
}

.form-head__sub {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* =============================================
   FORM TABS (login: password / magic link)
   ============================================= */
.form-tabs {
  display: flex;
  gap: 0;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 28px;
}

.form-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.form-tab[aria-selected="true"] {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.form-tab:hover:not([aria-selected="true"]) {
  color: var(--color-text-secondary);
  background: var(--color-border);
}

/* =============================================
   FORM FIELDS
   ============================================= */
.field {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-secondary);
  margin-bottom: 7px;
}

.field__input-wrap {
  position: relative;
}

.field__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  display: flex;
  transition: color var(--transition-fast);
}

.field__input,
.field__select {
  width: 100%;
  padding: 13px 13px 13px 42px;
  background: var(--color-surface-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 14.5px;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.field__input::placeholder {
  color: var(--color-text-muted);
}

.field__input:focus,
.field__select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3.5px var(--color-accent-glow);
}

.field__input:focus ~ .field__icon,
.field__input-wrap:focus-within .field__icon {
  color: var(--color-accent);
}

.field__input.is-error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(209, 85, 85, 0.15);
}

.field__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236d9886' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}

.field__select option {
  background: var(--color-surface);
}

.field__eye-btn {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
  border-radius: var(--radius-xs);
}

.field__eye-btn:hover { color: var(--color-accent); }
.field__eye-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.field__hint {
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-top: 5px;
}

.field__error {
  font-size: 11.5px;
  color: var(--color-danger);
  margin-top: 5px;
  display: none;
}

.field__error.is-visible { display: block; }

/* =============================================
   PASSWORD STRENGTH METER
   ============================================= */
.pw-strength {
  margin-top: 8px;
}

.pw-strength__bar {
  height: 3px;
  border-radius: 99px;
  background: var(--color-border);
  overflow: hidden;
}

.pw-strength__fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.35s ease, background-color 0.35s ease;
  width: 0%;
}

.pw-strength__label {
  font-size: 11px;
  margin-top: 4px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

/* =============================================
   FORM OPTIONS ROW
   ============================================= */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-wrap input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
  border-radius: 4px;
}

.checkbox-wrap label {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
}

.link {
  font-size: 13.5px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.link:hover { color: var(--color-accent-light); }
.link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Primary button */
.btn--primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.35s ease;
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover:not(:disabled)::before {
  background: rgba(255,255,255,0.08);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

/* Ghost/outline button */
.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 13.5px;
  font-weight: 500;
}

.btn--ghost:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

/* Spinner inside button */
.btn[data-loading="true"] .btn__label { opacity: 0; }
.btn[data-loading="true"] .btn__spinner { display: flex; }

.btn__spinner {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinRing 0.65s linear infinite;
}

.btn--ghost .spinner-ring {
  border-color: rgba(109,152,134,0.25);
  border-top-color: var(--color-accent);
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

/* OAuth buttons */
.oauth-section {
  margin-top: 20px;
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 12.5px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.oauth-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--color-surface-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.oauth-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-text-primary);
  background: var(--color-accent-glow);
}

.oauth-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.oauth-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* =============================================
   FEEDBACK: ERROR / SUCCESS / INFO BANNERS
   ============================================= */
.feedback {
  display: none;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 18px;
  border: 1px solid transparent;
  animation: feedbackEnter 0.25s ease both;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

@keyframes feedbackEnter {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feedback[hidden] { display: none !important; }

.feedback--error {
  background: var(--color-danger-bg);
  border-color: rgba(209, 85, 85, 0.3);
  color: var(--color-danger);
  animation: feedbackEnter 0.25s ease both, shake 0.4s ease both;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-7px); }
  60%       { transform: translateX(6px); }
  80%       { transform: translateX(-4px); }
}

.feedback--success {
  background: var(--color-success-bg);
  border-color: rgba(76, 168, 122, 0.3);
  color: var(--color-success);
}

.feedback--info {
  background: rgba(109, 152, 134, 0.08);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

.feedback__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* =============================================
   RATE LIMIT / LOCK NOTICE
   ============================================= */
.lock-notice {
  display: none;
  padding: 14px;
  background: var(--color-warning-bg);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-warning);
  font-size: 13.5px;
  text-align: center;
  margin-bottom: 18px;
}

.lock-notice.is-visible { display: block; }

.lock-notice__countdown {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 2px;
  font-family: var(--font-display);
}

/* =============================================
   MAGIC LINK SENT STATE
   ============================================= */
.magic-sent-state {
  display: none;
  text-align: center;
  padding: 8px 0;
  animation: fadeUp 0.4s ease both;
}

.magic-sent-state.is-visible { display: block; }

.magic-icon-wrap {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 28px rgba(109, 152, 134, 0.35);
  animation: successPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes successPop {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.magic-sent__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.magic-sent__email {
  font-weight: 600;
  color: var(--color-accent);
}

.magic-sent__text {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.magic-resend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.cooldown-text {
  font-size: 12px;
  color: var(--color-text-muted);
}

.cooldown-timer {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
}

/* =============================================
   SUCCESS STATE (forgot password sent)
   ============================================= */
.success-state {
  display: none;
  text-align: center;
  animation: fadeUp 0.4s ease both;
}

.success-state.is-visible { display: block; }

/* =============================================
   AUTH FOOTER / LINKS
   ============================================= */
.auth-footer {
  text-align: center;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--color-text-secondary);
}

/* =============================================
   CARD (centered layout for forgot password)
   ============================================= */
.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  animation: cardEnter 0.5s cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes cardEnter {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* =============================================
   BACKGROUND BLOBS (centered layout)
   ============================================= */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: blobDrift 12s ease-in-out infinite;
}

.bg-blob--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  top: 5%; left: 8%;
  opacity: 0.18;
}

.bg-blob--2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, var(--color-accent-dark) 0%, transparent 70%);
  bottom: 5%; right: 8%;
  opacity: 0.14;
  animation-delay: 4s;
}

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(30px, -25px) scale(1.12); }
}

/* =============================================
   ICON PILL (forgot password header icon)
   ============================================= */
.icon-pill {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 10px 28px rgba(109,152,134,0.32);
  animation: iconBreath 3.5s ease-in-out infinite;
}

@keyframes iconBreath {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.07); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .auth-panel-left { flex: 0 0 42%; }
}

@media (max-width: 700px) {
  .auth-shell {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .auth-panel-left {
    flex: 0 0 auto;
    height: 32vh;
    min-height: 200px;
  }

  .auth-panel-right {
    flex: 1;
    padding: 28px 20px;
  }

  .brand-logo  { width: 80px; height: 80px; }
  .brand-name  { font-size: 38px; }
  .feature-list { display: none; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .oauth-buttons { grid-template-columns: 1fr; }

  .auth-card { padding: 32px 22px; border-radius: var(--radius-lg); }
  .form-head__title { font-size: 30px; }
}

@media (max-width: 400px) {
  .auth-panel-right { padding: 20px 14px; }
}

/* =============================================
   ACCESSIBILITY — FOCUS RING OVERRIDE
   ============================================= */
:focus:not(:focus-visible) { outline: none; }

/* High contrast support */
@media (forced-colors: active) {
  .btn--primary { forced-color-adjust: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
