/* Onneta Auth — Premium Dark Theme v12 (split-screen) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #F7931E;
  --pink: #FF4081;
  --purple: #CC44CC;
  --gradient: linear-gradient(135deg, #F7931E, #FF4081, #CC44CC);
  --gradient-subtle: linear-gradient(135deg, rgba(247,147,30,0.15), rgba(255,64,129,0.15), rgba(204,68,204,0.15));
  --bg: #050507;
  --bg-card: rgba(12, 12, 16, 0.88);
  --bg-input: rgba(255,255,255,0.035);
  --bg-input-hover: rgba(255,255,255,0.055);
  --text: #f0f0f0;
  --text-dim: #999;
  --text-muted: #555;
  --border: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(255, 64, 129, 0.5);
  --glow: rgba(255, 64, 129, 0.15);
  --green: #22c55e;
  --red: #ef4444;
  --radius: 12px;
  --card-radius: 20px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::after {
  content: ''; position: fixed; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

/* ======= SPLIT SCREEN LAYOUT ======= */
.auth-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Brand Panel (left) --- */
.brand-panel {
  display: none;
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.brand-panel::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(247,147,30,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 70% 70% at 70% 70%, rgba(255,64,129,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(204,68,204,0.06) 0%, transparent 60%);
  animation: brandMesh 15s ease-in-out infinite alternate;
}
@keyframes brandMesh {
  0% { opacity: 1; filter: hue-rotate(0deg); }
  100% { opacity: 0.8; filter: hue-rotate(15deg); }
}

/* Diagonal separator */
.brand-panel::after {
  content: ''; position: absolute;
  top: 0; right: -1px; bottom: 0; width: 80px;
  background: linear-gradient(to right, transparent, var(--bg));
  z-index: 2;
}

.brand-content {
  position: relative;
  z-index: 3;
  max-width: 440px;
  animation: fadeUp 0.8s var(--transition) both;
}

.brand-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 48px;
}
.brand-logo svg {
  width: 44px; height: 44px;
  animation: logoSpin 1.2s var(--transition) both, logoFloat 4s ease-in-out 1.2s infinite;
}
.brand-logo span {
  font-size: 30px; font-weight: 800; letter-spacing: -0.5px;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.brand-headline {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  animation: fadeUp 0.8s 0.15s var(--transition) both;
}
.brand-headline .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subline {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 48px;
  animation: fadeUp 0.8s 0.3s var(--transition) both;
}

/* Feature list */
.brand-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp 0.8s 0.45s var(--transition) both;
}
.brand-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}
.brand-feature-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-feature-icon svg {
  width: 18px; height: 18px;
  color: var(--pink);
}
.brand-feature strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* Social proof in brand panel */
.brand-proof {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s 0.6s var(--transition) both;
}
.brand-proof-stat {
  text-align: left;
}
.brand-proof-number {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-proof-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}
.particle:nth-child(1) { width: 4px; height: 4px; background: var(--orange); left: 15%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { width: 3px; height: 3px; background: var(--pink); left: 35%; animation-duration: 15s; animation-delay: 2s; }
.particle:nth-child(3) { width: 5px; height: 5px; background: var(--purple); left: 55%; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(4) { width: 3px; height: 3px; background: var(--orange); left: 75%; animation-duration: 14s; animation-delay: 1s; }
.particle:nth-child(5) { width: 4px; height: 4px; background: var(--pink); left: 25%; animation-duration: 11s; animation-delay: 3s; }
.particle:nth-child(6) { width: 3px; height: 3px; background: var(--purple); left: 65%; animation-duration: 13s; animation-delay: 5s; }

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; transform: translateY(90vh) scale(1); }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}

/* --- Form Panel (right) --- */
.form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
  max-width: 100%;
}

/* Background orbs (form side only) */
.bg-orb {
  position: fixed; border-radius: 50%;
  pointer-events: none; filter: blur(100px); z-index: 0;
}
.bg-orb-1 {
  top: 10%; right: 5%; width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,64,129,0.06) 0%, transparent 70%);
  animation: orbFloat1 12s ease-in-out infinite;
}
.bg-orb-2 {
  bottom: 10%; right: 20%; width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(204,68,204,0.05) 0%, transparent 70%);
  animation: orbFloat2 15s ease-in-out infinite;
}
.bg-orb-3 {
  top: 40%; right: 30%; width: 250px; height: 250px;
  background: radial-gradient(ellipse, rgba(247,147,30,0.04) 0%, transparent 70%);
  animation: orbFloat3 18s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(25px,-15px) scale(1.04); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-20px,15px) scale(1.03); } }
@keyframes orbFloat3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(15px,-10px) scale(1.05); } }

/* Container */
.auth-container {
  width: 100%; max-width: 420px;
  position: relative; z-index: 1;
  animation: fadeUp 0.6s var(--transition) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Logo (mobile only — on desktop the brand panel has it) */
.auth-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 32px;
}
.auth-logo svg {
  width: 38px; height: 38px;
  animation: logoSpin 1.2s var(--transition) both, logoFloat 4s ease-in-out 1.2s infinite;
}
@keyframes logoSpin { from { transform: rotate(-180deg) scale(0.5); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes logoFloat {
  0%,100% { transform: translateY(0); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: translateY(-4px); filter: drop-shadow(0 0 10px rgba(255,64,129,0.25)); }
}
.auth-logo span {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: fadeIn 0.5s 0.3s both;
}

/* Card — animated gradient border */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(40px) saturate(1.4); -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border-radius: var(--card-radius);
  padding: 36px 32px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 24px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: box-shadow 0.4s, min-height 0.35s var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
  background-clip: padding-box;
}
.auth-card::before {
  content: ''; position: absolute;
  inset: -1px; border-radius: var(--card-radius);
  background: conic-gradient(from var(--border-angle, 0deg), transparent 40%, rgba(247,147,30,0.3), rgba(255,64,129,0.4), rgba(204,68,204,0.3), transparent 60%);
  z-index: -1;
  animation: rotateBorder 6s linear infinite;
}
@keyframes rotateBorder { to { --border-angle: 360deg; } }

/* Top gradient line */
.auth-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient); opacity: 0.7;
  z-index: 1;
}

.auth-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 12px 48px rgba(0,0,0,0.5), 0 4px 16px rgba(255,64,129,0.06);
}

/* Fallback for browsers without @property */
@supports not (animation-timeline: auto) {
  .auth-card::before {
    background: linear-gradient(135deg, rgba(247,147,30,0.15), rgba(255,64,129,0.2), rgba(204,68,204,0.15));
    opacity: 0.8;
  }
}

/* Headings */
.auth-title {
  font-size: 22px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.3px;
  animation: staggerIn 0.4s 0.15s var(--transition) both;
}
.auth-subtitle {
  font-size: 14px; color: var(--text-dim); margin-bottom: 28px;
  animation: staggerIn 0.4s 0.25s var(--transition) both;
}
@keyframes staggerIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ======= RETURNING USER ======= */
.returning-user {
  display: none; flex-direction: column; align-items: center;
  margin-bottom: 8px;
  animation: fadeIn 0.5s var(--transition) both;
}
.returning-user.visible { display: flex; }
.returning-user.fade-out-up { animation: fadeOutUp 0.3s var(--transition) forwards; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); height: 0; margin: 0; overflow: hidden; } }
.returning-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
  margin-bottom: 8px;
  box-shadow: 0 4px 20px rgba(255,64,129,0.2);
  animation: avatarPop 0.5s 0.2s var(--transition) both;
  position: relative; isolation: isolate;
}
.returning-avatar::before {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; background: var(--gradient);
  z-index: -1; animation: avatarRing 3s ease-in-out infinite; opacity: 0.4;
}
@keyframes avatarRing { 0%,100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.03); } }
.returning-avatar::after {
  content: ''; position: absolute;
  bottom: 1px; right: 1px;
  width: 14px; height: 14px;
  background: var(--green);
  border: 2.5px solid #0c0c10;
  border-radius: 50%;
  animation: pulseOnline 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes pulseOnline { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); } 50% { box-shadow: 0 0 0 4px rgba(34,197,94,0); } }
@keyframes avatarPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.returning-name { font-size: 14px; font-weight: 600; color: var(--text); animation: fadeIn 0.4s 0.3s both; }

/* "Not you?" button */
.not-you-btn {
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-family: inherit; font-weight: 500;
  color: var(--pink); opacity: 0.7;
  margin-top: 6px; padding: 4px 12px;
  border-radius: 20px;
  transition: opacity 0.2s, background 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.not-you-btn:hover { opacity: 1; background: rgba(255,64,129,0.08); }
.not-you-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ======= AUTH TABS ======= */
.auth-tabs {
  display: flex;
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 28px;
  animation: staggerIn 0.4s 0.1s var(--transition) both;
}
.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s var(--transition);
  position: relative;
  z-index: 1;
  min-height: 44px;
}
.auth-tab:hover { color: var(--text-dim); }
.auth-tab.active { color: var(--text); }
.auth-tab:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; border-radius: 8px; }

/* Sliding indicator */
.auth-tab-indicator {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  transition: transform 0.3s var(--transition);
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Panels */
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: panelFadeIn 0.3s var(--transition) both; }
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======= FORM ELEMENTS ======= */
.form-group {
  margin-bottom: 20px;
  animation: staggerIn 0.4s var(--stagger-delay, 0.4s) var(--transition) both;
}
.form-group:nth-child(1) { --stagger-delay: 0.4s; }
.form-group:nth-child(2) { --stagger-delay: 0.5s; }
.form-group:nth-child(3) { --stagger-delay: 0.6s; }
.form-group:nth-child(4) { --stagger-delay: 0.7s; }

.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-dim); margin-bottom: 6px;
  transition: color 0.2s;
}
.form-group:focus-within .form-label { color: var(--text); }
.input-wrapper { position: relative; }

.form-input {
  width: 100%; padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font-size: 15px; font-family: inherit;
  outline: none;
  transition: border-color 0.25s var(--transition), box-shadow 0.25s var(--transition), background 0.2s;
}
.form-input:hover { background: var(--bg-input-hover); border-color: rgba(255,255,255,0.1); }
.form-input:focus {
  border-color: rgba(255, 64, 129, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.12), 0 0 20px rgba(255, 64, 129, 0.06);
  background: rgba(255,255,255,0.06);
}
.form-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(255,64,129,0.15), 0 0 0 3px rgba(255,64,129,0.12), 0 0 24px rgba(255,64,129,0.08);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.has-toggle { padding-right: 44px; }
.form-input.input-error { border-color: rgba(239,68,68,0.5); box-shadow: 0 0 0 3px rgba(239,68,68,0.06); }
.form-input.input-success { border-color: rgba(34,197,94,0.4); box-shadow: 0 0 0 3px rgba(34,197,94,0.06); }
.form-input.input-shake { animation: inputShake 0.4s ease; }
.form-input:disabled { opacity: 0.5; cursor: not-allowed; background: rgba(255,255,255,0.02); }

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

/* Autofill */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px #0c0c10 inset !important;
  box-shadow: 0 0 0 1000px #0c0c10 inset !important;
  border-color: rgba(247,147,30,0.3) !important;
  caret-color: var(--text) !important;
  transition: background-color 600000s 0s, color 600000s 0s;
}

/* Password toggle */
.toggle-password {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: color 0.15s, background 0.15s;
  min-height: 44px; min-width: 44px;
}
.toggle-password:hover { color: var(--text-dim); background: rgba(255,255,255,0.05); }
.toggle-password:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; border-radius: 6px; }
.toggle-password svg { width: 18px; height: 18px; }

/* Caps lock warning */
.caps-warning {
  display: none; align-items: center; gap: 6px;
  font-size: 12px; color: var(--orange);
  margin-top: 6px; padding: 6px 10px;
  background: rgba(247,147,30,0.06);
  border: 1px solid rgba(247,147,30,0.15);
  border-radius: 8px;
  animation: slideDown 0.2s var(--transition);
}
.caps-warning.visible { display: flex; }
.caps-warning svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Password strength */
.password-strength { margin-top: 8px; }
.strength-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; margin-bottom: 4px; }
.strength-fill { height: 100%; border-radius: 2px; width: 0; transition: width 0.3s var(--transition), background 0.3s; }
.strength-fill[data-level="0"] { width: 0; }
.strength-fill[data-level="1"] { width: 25%; background: var(--red); }
.strength-fill[data-level="2"] { width: 50%; background: var(--orange); }
.strength-fill[data-level="3"] { width: 75%; background: #eab308; }
.strength-fill[data-level="4"] { width: 100%; background: var(--green); }
.strength-text { font-size: 11px; color: var(--text-muted); min-height: 16px; }

/* Password requirements */
.pw-requirements { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.pw-requirements li { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.pw-requirements li.met { color: var(--green); }
.pw-requirements li svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Breach warning */
.breach-warning {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius); padding: 10px 12px; font-size: 12px; color: var(--red);
  margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.4;
  animation: slideDown 0.25s var(--transition);
}
.breach-warning.visible { display: flex; }
.breach-warning svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: var(--orange); }

/* Remember me */
.remember-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px; color: var(--text-dim); user-select: none;
  position: relative; min-height: 44px;
}
.remember-label input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--border); border-radius: 5px;
  background: rgba(255,255,255,0.04);
  cursor: pointer; position: relative;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; flex-shrink: 0;
}
.remember-label input[type="checkbox"]:checked { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 8px rgba(255,64,129,0.25); }
.remember-label input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 6px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Terms */
.terms-label {
  display: flex; align-items: flex-start; gap: 8px;
  cursor: pointer; font-size: 12px; color: var(--text-dim); user-select: none;
  margin-bottom: 20px; line-height: 1.5; min-height: 44px;
}
.terms-label input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; min-width: 18px;
  border: 1px solid var(--border); border-radius: 5px;
  background: rgba(255,255,255,0.04);
  cursor: pointer; position: relative;
  transition: border-color 0.15s, background 0.15s; flex-shrink: 0; margin-top: 2px;
}
.terms-label input[type="checkbox"]:checked { background: var(--pink); border-color: var(--pink); }
.terms-label input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 6px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.terms-label a { color: var(--pink); text-decoration: none; }
.terms-label a:hover { text-decoration: underline; }

/* Form row */
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.forgot-link, .auth-link { font-size: 13px; color: var(--pink); text-decoration: none; font-weight: 500; transition: opacity 0.15s; }
.forgot-link:hover, .auth-link:hover { opacity: 0.8; }

/* ======= PRIMARY BUTTON ======= */
.auth-btn {
  width: 100%; padding: 13px; background: linear-gradient(135deg, #F7931E 0%, #FF4081 50%, #CC44CC 100%);
  background-size: 200% 200%; background-position: 0% 50%;
  border: none; border-radius: var(--radius);
  color: #fff; font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-position 0.5s ease;
  letter-spacing: 0.02em;
  min-height: 48px; position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(255,64,129,0.15);
  animation: staggerIn 0.4s 0.6s var(--transition) both;
}
.auth-btn:hover { background-position: 100% 100%; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(255, 64, 129, 0.3), 0 0 0 1px rgba(255, 64, 129, 0.2); }
.auth-btn:active { transform: scale(0.99) translateY(0); box-shadow: 0 1px 8px rgba(255,64,129,0.1); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.auth-btn .btn-text { transition: opacity 0.15s; }
.auth-btn .btn-spinner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.15s; }
.auth-btn.loading .btn-text { opacity: 0; }
.auth-btn.loading .btn-spinner { opacity: 1; }
.auth-btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.6s;
}
.auth-btn:hover::before { left: 100%; }
.auth-btn:active::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 60%);
  animation: btnRipple 0.4s ease-out forwards; pointer-events: none;
}
@keyframes btnRipple { from { transform: scale(0.5); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.auth-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }

/* ======= MESSAGES ======= */
.auth-error {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius); padding: 12px 14px; font-size: 13px; color: var(--red);
  margin-bottom: 20px; display: none; line-height: 1.5;
  animation: slideDown 0.25s var(--transition);
}
.auth-error.visible { display: flex; gap: 10px; align-items: flex-start; }
.auth-error svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.auth-error a { color: var(--pink); text-decoration: none; font-weight: 600; }
.auth-error a:hover { text-decoration: underline; }

.auth-success {
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius); padding: 12px 14px; font-size: 13px; color: var(--green);
  margin-bottom: 20px; display: none; line-height: 1.5;
  animation: slideDown 0.25s var(--transition);
}
.auth-success.visible { display: flex; gap: 10px; align-items: center; }

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

/* Field error */
.field-error {
  font-size: 12px; color: var(--red); margin-top: 6px;
  display: flex; align-items: center; gap: 5px;
  animation: slideDown 0.2s var(--transition); line-height: 1.4;
}
.field-error svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Shake */
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.auth-card.shake { animation: shake 0.4s ease; }

/* ======= LOGIN SUCCESS OVERLAY ======= */
.login-success-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: linear-gradient(135deg, rgba(5,5,7,0.97), rgba(12,12,16,0.98));
  display: none; align-items: center; justify-content: center;
}
.login-success-overlay.visible { display: flex; animation: fadeIn 0.3s var(--transition); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); }
.login-success-overlay .success-content { text-align: center; animation: successPop 0.5s var(--transition) both; }
@keyframes successPop {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.success-check-lg { display: inline-block; width: 64px; height: 64px; margin-bottom: 20px; }
.success-check-lg circle { fill: none; stroke: url(#logo-grad); stroke-width: 2; stroke-dasharray: 166; stroke-dashoffset: 166; animation: strokeDraw 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards; }
.success-check-lg path { stroke: #22c55e; stroke-width: 3; stroke-dasharray: 48; stroke-dashoffset: 48; stroke-linecap: round; stroke-linejoin: round; animation: strokeDraw 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards; }
@keyframes strokeDraw { to { stroke-dashoffset: 0; } }
.success-greeting { font-size: 24px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.3px; }
.success-redirect { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }
.success-progress { width: 200px; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; margin: 0 auto; }
.success-progress-bar { height: 100%; width: 0; background: var(--gradient); border-radius: 2px; animation: progressFill 1.4s 0.3s var(--transition) forwards; }
@keyframes progressFill { to { width: 100%; } }
@keyframes checkCircle { to { stroke-dashoffset: 0; } }
@keyframes checkMark { to { stroke-dashoffset: 0; } }

/* ======= FOOTER ======= */
.auth-footer {
  text-align: center; margin-top: 24px; font-size: 13px;
  display: flex; flex-direction: column; gap: 8px; align-items: center; color: var(--text-muted);
  animation: staggerIn 0.4s 0.7s var(--transition) both;
}
.auth-footer a { color: var(--pink); text-decoration: none; transition: opacity 0.15s; min-height: 44px; display: inline-flex; align-items: center; }
.auth-footer a:hover { opacity: 0.8; }

/* Social proof (mobile fallback — the brand panel has its own on desktop) */
.social-proof {
  display: none; justify-content: center; gap: 24px; margin-top: 20px;
  padding: 16px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.5s 0.8s both;
}
.proof-stat { text-align: center; }
.proof-number { font-size: 22px; font-weight: 800; line-height: 1.2; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.proof-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* Trust badge */
.trust-badge {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 20px; font-size: 11px; color: var(--text-muted); letter-spacing: 0.3px;
  opacity: 0.7; animation: staggerIn 0.4s 0.8s var(--transition) both;
}
.trust-badge svg { width: 12px; height: 12px; color: var(--green); }

/* Keyboard hint */
.kbd-hint {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-muted);
  margin-top: 12px; text-align: center; width: 100%; justify-content: center;
  animation: fadeIn 0.4s 1s both;
}
.kbd-hint kbd {
  display: inline-block; padding: 1px 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; font-family: inherit; font-size: 10px; font-weight: 600;
  color: var(--text-dim); line-height: 1.6;
}

/* Magic link sent state */
.magic-sent { text-align: center; padding: 8px 0; }
.magic-sent-enter { animation: magicSentEnter 0.5s var(--transition) both; }
@keyframes magicSentEnter {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.magic-sent-icon { width: 80px; height: 80px; margin: 0 auto 20px; animation: envelopeBounce 0.6s 0.1s var(--transition) both; }
.magic-sent-icon svg { width: 100%; height: 100%; }
@keyframes envelopeBounce {
  0% { opacity: 0; transform: scale(0.5) translateY(20px); }
  60% { opacity: 1; transform: scale(1.05) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.magic-sent-dot { animation: dotPop 0.3s 0.5s var(--transition) both; }
@keyframes dotPop { from { r: 0; opacity: 0; } to { r: 10; opacity: 1; } }
.magic-sent-check { stroke-dasharray: 20; stroke-dashoffset: 20; animation: checkDraw 0.3s 0.7s var(--transition) forwards; }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.magic-sent-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.3px; }
.magic-sent-email { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.magic-sent-hint { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.magic-sent-spam { font-size: 12px; color: var(--text-muted); margin-top: 12px; opacity: 0.7; }

/* ======= FOCUS-VISIBLE RINGS ======= */
a:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 3px; }
.remember-label input[type="checkbox"]:focus-visible,
.terms-label input[type="checkbox"]:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ======= SOCIAL LOGIN BUTTONS ======= */
.social-login {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 0;
  animation: staggerIn 0.4s 0.15s var(--transition) both;
}
.social-btn {
  width: 100%; padding: 11px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font-size: 14px; font-weight: 500; font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  min-height: 48px; position: relative; overflow: hidden;
}
.social-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.social-btn:active { transform: scale(0.99) translateY(0); }
.social-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.social-btn svg { flex-shrink: 0; }


/* Social button loading shimmer */
.social-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}
.social-btn.loading::after {
  content: ;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
  border-radius: inherit;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  animation: staggerIn 0.4s 0.2s var(--transition) both;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ======= EMAIL AVAILABILITY CHECK ======= */
.input-status {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  pointer-events: none;
}
.input-status.checking { opacity: 0.6; }
.input-status.available svg { color: var(--green); width: 16px; height: 16px; animation: statusPop 0.3s var(--transition); }
.input-status.taken svg { color: var(--red); width: 16px; height: 16px; animation: statusPop 0.3s var(--transition); }
@keyframes statusPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.status-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: block;
}

.email-check-msg {
  font-size: 12px; margin-top: 6px; min-height: 0;
  transition: all 0.2s var(--transition);
  line-height: 1.4;
}
.email-check-msg.error { color: var(--red); }
.email-check-msg a { color: var(--pink); text-decoration: none; font-weight: 600; }
.email-check-msg a:hover { text-decoration: underline; }

/* Status indicator adjusts input padding */
.input-wrapper:has(.input-status:not(:empty)) .form-input { padding-right: 40px; }

/* ======= LOGIN METHOD TOGGLE ======= */
.login-method-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 3px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: staggerIn 0.4s 0.25s var(--transition) both;
}
.method-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s var(--transition), background 0.25s var(--transition), box-shadow 0.25s;
  min-height: 44px;
  position: relative;
}
.method-btn:hover { color: var(--text-dim); }
.method-btn.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.method-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; border-radius: 8px; }
.method-btn svg { opacity: 0.6; transition: opacity 0.2s; }
.method-btn.active svg { opacity: 1; }

/* Magic link hint text */
.magic-link-hint {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-muted);
  margin-top: 14px; line-height: 1.5;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: fadeIn 0.4s 0.3s both;
}
.magic-link-hint svg { flex-shrink: 0; margin-top: 1px; color: var(--pink); opacity: 0.7; }

/* ======= DESKTOP — SPLIT SCREEN ======= */
@media (min-width: 960px) {
  .brand-panel {
    display: flex;
    min-width: 480px;
    max-width: 55%;
  }

  .auth-logo {
    display: none; /* Brand panel has its own logo */
  }

  .form-panel {
    min-width: 440px;
    max-width: 560px;
    padding: 40px;
  }

  .social-proof { display: none !important; } /* Social proof lives in the brand panel on desktop */

  .bg-orb { display: none; } /* Brand panel handles the background */
}

@media (min-width: 1200px) {
  .brand-headline { font-size: 42px; }
  .brand-panel { padding: 64px; }
}

/* ======= MOBILE ======= */
@media (max-width: 959px) {
  body { align-items: center; justify-content: center; }

  .brand-panel { display: none !important; }

  .form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    padding-top: env(safe-area-inset-top, 20px);
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }
}

@media (max-width: 480px) {
  .form-panel { padding: 16px; }
  .auth-card { padding: 24px 20px; border-radius: 16px; }
  .auth-title { font-size: 20px; }
  button, .auth-btn, input[type="submit"] { min-height: 48px; min-width: 48px; }
  .auth-btn { min-height: 50px; font-size: 15px; }
  .social-btn { min-height: 46px; }
  .form-input { padding: 14px; font-size: 16px; min-height: 46px; }
  .pw-requirements { grid-template-columns: 1fr; }
  .returning-avatar { width: 48px; height: 48px; font-size: 18px; }
  .kbd-hint { display: none; }
  .social-proof { gap: 16px; padding: 12px; }
  .auth-tabs { margin-bottom: 24px; }
  .auth-tab { font-size: 14px; padding: 10px 14px; }
  .form-row { gap: 12px; }
  .auth-error, .auth-success { font-size: 12px; padding: 10px 12px; }
  .breach-warning { font-size: 11px; padding: 8px 10px; }
  .auth-subtitle { font-size: 13px; margin-bottom: 24px; }
  .social-btn { padding: 12px 14px; font-size: 13px; }
  .auth-divider { margin: 16px 0; }
  .method-btn { font-size: 13px; }
  .magic-link-hint { font-size: 12px; padding: 10px; }
}

@media (max-width: 360px) {
  .auth-card { padding: 24px 18px; }
  .form-row { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (max-width: 340px) {
  .form-panel { padding: 12px; }
  .auth-card { padding: 20px 16px; border-radius: 14px; }
  .auth-title { font-size: 18px; }
  .auth-subtitle { font-size: 12px; }
  .auth-logo { margin-bottom: 24px; }
  .auth-logo svg { width: 32px; height: 32px; }
  .auth-logo span { font-size: 22px; }
  .auth-tab { padding: 8px 8px; font-size: 11px; }
}

/* Short screens */
@media (max-height: 700px) and (max-width: 959px) {
  body { align-items: flex-start; }
  .form-panel { padding-top: 20px; padding-bottom: 40px; align-items: flex-start; }
}


/* OAuth providers loading states */
.social-login.providers-loading {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease;
}
.social-login.providers-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}
.social-login.providers-hidden {
  display: none;
}


/* ======= FORM STAGGER ANIMATION ======= */
.form-stagger {
  animation: formFieldEnter 0.45s calc(0.2s + var(--stagger, 0) * 0.08s) var(--transition) both;
}
@keyframes formFieldEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ======= PASSWORD MATCH INDICATOR ======= */
.match-indicator {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; margin-top: 6px;
  animation: slideDown 0.2s var(--transition);
}
.match-indicator svg { width: 14px; height: 14px; flex-shrink: 0; }
.match-indicator.match-yes { color: var(--green); }
.match-indicator.match-no { color: var(--red); }

/* Confirm password match message */
.confirm-match-msg {
  font-size: 12px; margin-top: 6px; min-height: 0;
  transition: all 0.2s var(--transition);
  line-height: 1.4;
  animation: slideDown 0.2s var(--transition);
}
.confirm-match-msg.match { color: var(--green); }
.confirm-match-msg.no-match { color: var(--red); }

/* Confetti canvas */
#confetti-canvas {
  position: fixed; inset: 0; z-index: 1001;
  pointer-events: none;
  width: 100%; height: 100%;
}

/* ======= SMOOTH PANEL HEIGHT TRANSITION ======= */
.auth-card {
  transition: box-shadow 0.4s, min-height 0.35s var(--transition);
}
.auth-panel {
  animation: panelFadeIn 0.35s var(--transition) both;
}

/* ======= SUCCESS CHECK (standalone pages) ======= */
.success-check {
  display: inline-block; width: 52px; height: 52px; margin-bottom: 16px;
}
.success-check circle {
  fill: none; stroke: url(#logo-grad); stroke-width: 2;
  stroke-dasharray: 166; stroke-dashoffset: 166;
  animation: strokeDraw 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}
.success-check path {
  stroke: #22c55e; stroke-width: 3; fill: none;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  stroke-linecap: round; stroke-linejoin: round;
  animation: strokeDraw 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

/* ======= IMPROVED PANEL TRANSITIONS ======= */
.auth-panel.slide-out-left { animation: panelSlideOutLeft 0.25s var(--transition) forwards; }
.auth-panel.slide-in-right { animation: panelSlideInRight 0.3s var(--transition) both; }
@keyframes panelSlideOutLeft {
  to { opacity: 0; transform: translateX(-12px); }
}
@keyframes panelSlideInRight {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ======= IMPROVED FOCUS GLOW ON INPUTS ======= */
.form-input:focus {
  border-color: rgba(255, 64, 129, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1), 0 0 24px rgba(255, 64, 129, 0.05);
  background: rgba(255,255,255,0.05);
}

/* ======= DIVIDER PROVIDERS STATES ======= */
.auth-divider.providers-loading {
  opacity: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
}
.auth-divider.providers-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}
.auth-divider.providers-hidden {
  display: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .auth-card::before { animation: none; background: var(--gradient); opacity: 0.12; }
  .particle { animation: none !important; display: none; }
}

/* ======= LOCKOUT BANNER ======= */
.lockout-banner {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  color: var(--text);
  animation: bannerSlideIn 0.4s var(--transition) both;
}
.lockout-banner.visible { display: flex; }
.lockout-banner.fade-out { animation: bannerFadeOut 0.4s var(--transition) forwards; }
.lockout-banner svg {
  width: 24px; height: 24px;
  color: var(--red);
  flex-shrink: 0;
  animation: clockPulse 2s ease-in-out infinite;
}
.lockout-banner div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lockout-banner strong {
  font-size: 14px;
  font-weight: 600;
  color: #fca5a5;
}
.lockout-banner span {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fca5a5, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}
@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bannerFadeOut {
  to { opacity: 0; transform: translateY(-8px); height: 0; padding: 0; margin: 0; border: 0; overflow: hidden; }
}
@keyframes clockPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

/* ======= ATTEMPTS WARNING (inline in error) ======= */
.attempts-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fbbf24;
  animation: fadeIn 0.3s ease both;
}
.attempts-warning svg {
  color: #fbbf24;
  flex-shrink: 0;
}

/* ======= ERROR ACTION LINKS ======= */
.error-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.error-actions a {
  font-size: 12px;
  font-weight: 600;
  color: var(--pink);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s, opacity 0.2s;
}
.error-actions a:hover {
  color: var(--orange);
  opacity: 0.9;
}

/* ======= ENHANCED SOCIAL BUTTONS ======= */
.social-btn {
  position: relative;
  overflow: hidden;
}
.social-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.04) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.social-btn:hover::after { opacity: 1; }
.social-btn:active {
  transform: scale(0.98);
}

/* ======= STAGGERED FORM FIELD ANIMATIONS ======= */
.auth-panel.active .form-group:nth-child(1) { animation-delay: 0.1s; }
.auth-panel.active .form-group:nth-child(2) { animation-delay: 0.17s; }
.auth-panel.active .form-group:nth-child(3) { animation-delay: 0.24s; }
.auth-panel.active .form-group:nth-child(4) { animation-delay: 0.31s; }
.auth-panel.active .form-group:nth-child(5) { animation-delay: 0.38s; }
.auth-panel.active .auth-btn { animation: staggerIn 0.4s 0.4s var(--transition) both; }

/* ======= IMPROVED INPUT FOCUS MICRO-INTERACTION ======= */
.form-input:focus + .form-label,
.form-group:focus-within .form-label {
  color: var(--pink);
  transform: translateY(-1px);
  transition: color 0.2s, transform 0.2s;
}

/* ======= ENHANCED REMEMBER ME ======= */
.remember-label {
  position: relative;
}
.remember-label span::after {
  content: ' (7 days)';
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ======= KEYBOARD HINT ENHANCEMENT ======= */
.kbd-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-family: inherit;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--text-dim);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* ======= PASSWORD CONFIRM MATCH FEEDBACK ======= */
.confirm-match-msg {
  font-size: 12px;
  margin-top: 4px;
  transition: all 0.2s ease;
}
.confirm-match-msg.match { color: var(--green); }
.confirm-match-msg.no-match { color: var(--red); }

/* ======= IMPROVED MOBILE TOUCH TARGETS ======= */
@media (max-width: 480px) {
  .form-input {
    min-height: 48px;
    font-size: 16px; /* prevents iOS zoom */
    padding: 14px 16px;
  }
  .auth-btn {
    min-height: 52px;
    font-size: 16px;
  }
  .auth-tab {
    min-height: 48px;
    font-size: 15px;
  }
  .social-btn {
    min-height: 48px;
    font-size: 14px;
  }
  .auth-card {
    padding: 28px 20px;
  }
  .lockout-banner {
    padding: 14px 16px;
  }
  .lockout-banner span {
    font-size: 20px;
  }
}

/* ======= v13 IMPROVEMENTS — PREMIUM AUTH FLOW ======= */

/* --- Animated gradient focus ring on inputs --- */
@property --input-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.form-input:focus {
  border-color: transparent;
  background: rgba(255,255,255,0.05);
  box-shadow: 
    0 0 0 1px rgba(255, 64, 129, 0.3),
    0 0 0 3px rgba(255, 64, 129, 0.08),
    0 0 30px rgba(255, 64, 129, 0.04);
}

.form-group:focus-within::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  opacity: 0;
  transform: scaleX(0);
  animation: inputUnderline 0.35s var(--transition) forwards;
  pointer-events: none;
}
.form-group {
  position: relative;
}
@keyframes inputUnderline {
  to { opacity: 0.7; transform: scaleX(1); }
}

/* --- Premium button loading state with shimmer --- */
.auth-btn.loading {
  background: linear-gradient(135deg, rgba(247,147,30,0.6) 0%, rgba(255,64,129,0.6) 50%, rgba(204,68,204,0.6) 100%);
  pointer-events: none;
}
.auth-btn.loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.15) 40%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.15) 60%,
    transparent 80%
  );
  animation: btnShimmer 1.5s ease-in-out infinite;
  border-radius: inherit;
}
@keyframes btnShimmer {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}

/* --- Pulse animation on auth button for CTA emphasis --- */
.auth-btn:not(.loading):not(:disabled) {
  animation: staggerIn 0.4s 0.6s var(--transition) both, btnPulseGlow 3s 2s ease-in-out 2;
}
@keyframes btnPulseGlow {
  0%, 100% { box-shadow: 0 2px 12px rgba(255,64,129,0.15); }
  50% { box-shadow: 0 4px 24px rgba(255,64,129,0.35), 0 0 0 2px rgba(255,64,129,0.1); }
}

/* --- Error auto-fade styling --- */
.auth-error.auto-fade {
  animation: slideDown 0.25s var(--transition), errorFade 0.5s 8s var(--transition) forwards;
}
@keyframes errorFade {
  to { opacity: 0; transform: translateY(-4px); max-height: 0; padding: 0; margin: 0; border: 0; overflow: hidden; }
}

/* --- Improved input transition on typing --- */
.form-input.has-value {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
}

/* --- Better tab transition micro-interaction --- */
.auth-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: width 0.3s var(--transition), left 0.3s var(--transition);
}
.auth-tab.active::after {
  width: 60%;
  left: 20%;
}

/* --- Returning user avatar glow pulse --- */
.returning-user.visible .returning-avatar {
  animation: avatarPop 0.5s 0.2s var(--transition) both, avatarGlow 3s 1s ease-in-out infinite;
}
@keyframes avatarGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(255,64,129,0.2); }
  50% { box-shadow: 0 4px 30px rgba(255,64,129,0.4), 0 0 40px rgba(247,147,30,0.15); }
}

/* --- Social button hover gradient sweep --- */
.social-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,64,129,0.04), transparent);
  transition: left 0.5s var(--transition);
  pointer-events: none;
}
.social-btn:hover::before {
  left: 100%;
}

/* --- Input icon on email fields (envelope) --- */
.form-input[type="email"] {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px;
}
.form-input[type="email"]:focus {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23FF4081' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

/* --- Input icon on password fields (lock) --- */
.form-input[type="password"],
.form-input[autocomplete="current-password"],
.form-input[autocomplete="new-password"] {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px;
}
.form-input[type="password"]:focus,
.form-input[autocomplete="current-password"]:focus,
.form-input[autocomplete="new-password"]:focus {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23FF4081' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* When password is toggled to text type, keep the lock icon */
.form-input[type="text"].has-toggle {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px;
}
.form-input[type="text"].has-toggle:focus {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23FF4081' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* --- Name field icon (user) --- */
.form-input[autocomplete="name"] {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px;
}
.form-input[autocomplete="name"]:focus {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23FF4081' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* --- Smooth field error entrance --- */
.field-error {
  animation: fieldErrorEnter 0.3s var(--transition);
}
@keyframes fieldErrorEnter {
  from { opacity: 0; transform: translateY(-4px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Mobile: better virtual keyboard handling --- */
@media (max-width: 959px) {
  .form-panel {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
  }
  
  /* When keyboard is open, reduce padding */
  @media (max-height: 500px) {
    .auth-logo { display: none; }
    .social-proof { display: none !important; }
    .trust-badge { display: none; }
    .brand-proof { display: none; }
    .auth-card { padding: 20px 16px; }
    .auth-subtitle { margin-bottom: 16px; }
    .form-group { margin-bottom: 14px; }
  }
}

/* --- Improved password toggle animation --- */
.toggle-password svg {
  transition: transform 0.2s var(--transition), opacity 0.15s;
}
.toggle-password:active svg {
  transform: scale(0.85);
}

/* --- Lockout banner improvement with gradient text --- */
.lockout-banner span {
  background: linear-gradient(135deg, #fca5a5, #ef4444, #fca5a5);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lockoutTextShift 2s ease-in-out infinite;
}
@keyframes lockoutTextShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Smooth scroll anchor for form errors --- */
.form-input.input-error {
  scroll-margin-top: 20px;
}

/* --- Enhanced auth-divider with gradient --- */
.auth-divider::before, .auth-divider::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* --- Success overlay progress bar enhancement --- */
.success-progress-bar {
  background: var(--gradient);
  background-size: 200% 100%;
  animation: progressFill 1.4s 0.3s var(--transition) forwards, progressShine 1s 0.5s linear infinite;
}
@keyframes progressShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ============================================================
   v14 — MOBILE BRAND HEADER + PREMIUM POLISH
   ============================================================ */

/* --- Mobile Brand Header --- */
.mobile-brand {
  display: none;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 20px;
  padding: 28px 24px 22px;
  background: rgba(12, 12, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  animation: fadeUp 0.5s var(--transition) both;
}

/* Gradient mesh behind mobile brand */
.mobile-brand-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% 20%, rgba(247,147,30,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 80% 80%, rgba(255,64,129,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(204,68,204,0.08) 0%, transparent 60%);
  animation: mobileMesh 12s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes mobileMesh {
  0% { opacity: 1; filter: hue-rotate(0deg); }
  100% { opacity: 0.7; filter: hue-rotate(12deg); }
}

/* Top gradient line on mobile brand */
.mobile-brand::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.6;
}

.mobile-brand-inner {
  position: relative;
  z-index: 1;
}

.mobile-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.mobile-brand-logo svg {
  animation: logoSpin 1s var(--transition) both;
}
.mobile-brand-logo span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-brand-tagline {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 14px;
  animation: fadeUp 0.5s 0.15s var(--transition) both;
}
.mobile-brand-tagline strong {
  color: var(--text);
  font-weight: 600;
}

/* Stats row */
.mobile-brand-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.5s 0.25s var(--transition) both;
}
.mobile-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.mobile-stat-num {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.mobile-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.mobile-stat-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* Show mobile brand only on mobile */
@media (max-width: 959px) {
  .mobile-brand {
    display: block;
  }
  /* Hide the old simple logo when mobile brand header is visible */
  .auth-logo {
    display: none;
  }
}
/* Hide on desktop — brand panel handles it */
@media (min-width: 960px) {
  .mobile-brand {
    display: none !important;
  }
}

/* Small phones — compact the brand header */
@media (max-width: 480px) {
  .mobile-brand {
    padding: 22px 20px 18px;
    margin-bottom: 16px;
    border-radius: 16px;
  }
  .mobile-brand-logo span { font-size: 20px; }
  .mobile-brand-tagline { font-size: 13px; margin-bottom: 12px; }
  .mobile-stat-num { font-size: 16px; }
}
@media (max-width: 360px) {
  .mobile-brand {
    padding: 18px 16px 14px;
  }
}

/* Hide mobile brand when keyboard is open (short screens) */
@media (max-width: 959px) and (max-height: 600px) {
  .mobile-brand {
    display: none;
  }
  .auth-logo {
    display: flex;
  }
}

/* --- Skeleton Loading for Social Buttons --- */
.social-login.providers-loading {
  opacity: 1;
  height: auto;
  overflow: visible;
}
.social-login.providers-loading .social-btn {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.04);
  pointer-events: none;
  position: relative;
  overflow: hidden;
  color: transparent;
}
.social-login.providers-loading .social-btn svg {
  opacity: 0;
}
.social-login.providers-loading .social-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.04) 30%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.04) 70%,
    transparent 100%
  );
  animation: skeletonShimmer 1.8s ease-in-out infinite;
  border-radius: inherit;
}
@keyframes skeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Divider skeleton */
.auth-divider.providers-loading {
  opacity: 1;
  height: auto;
  overflow: visible;
  margin: 20px 0;
}
.auth-divider.providers-loading span {
  opacity: 0.3;
}

/* Smooth transition when providers load in */
.social-login.providers-loaded .social-btn {
  animation: socialBtnEnter 0.4s var(--transition) both;
}
.social-login.providers-loaded .social-btn:nth-child(1) { animation-delay: 0.05s; }
.social-login.providers-loaded .social-btn:nth-child(2) { animation-delay: 0.12s; }
@keyframes socialBtnEnter {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Better panel transition with directional slide --- */
.auth-panel.exit-left {
  animation: panelExitLeft 0.2s var(--transition) forwards;
  pointer-events: none;
}
.auth-panel.enter-right {
  animation: panelEnterRight 0.3s 0.05s var(--transition) both;
}
.auth-panel.exit-right {
  animation: panelExitRight 0.2s var(--transition) forwards;
  pointer-events: none;
}
.auth-panel.enter-left {
  animation: panelEnterLeft 0.3s 0.05s var(--transition) both;
}
@keyframes panelExitLeft {
  to { opacity: 0; transform: translateX(-16px); }
}
@keyframes panelEnterRight {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes panelExitRight {
  to { opacity: 0; transform: translateX(16px); }
}
@keyframes panelEnterLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Gradient ambient glow on mobile form panel background --- */
@media (max-width: 959px) {
  .form-panel::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 30% 20%, rgba(247,147,30,0.04) 0%, transparent 60%),
      radial-gradient(ellipse 50% 60% at 70% 80%, rgba(255,64,129,0.035) 0%, transparent 60%),
      radial-gradient(ellipse 40% 40% at 50% 50%, rgba(204,68,204,0.025) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: mobileMesh 15s ease-in-out infinite alternate;
  }
}

/* --- Smoother form-group focus underline fix --- */
.form-group:focus-within::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  opacity: 0;
  transform: scaleX(0);
  animation: inputUnderline 0.35s var(--transition) forwards;
  pointer-events: none;
  z-index: 2;
}

/* --- Better error shake with haptic-like bounce --- */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-8px); }
  30% { transform: translateX(6px); }
  50% { transform: translateX(-4px); }
  70% { transform: translateX(3px); }
  90% { transform: translateX(-1px); }
}

/* --- Input filled state highlight --- */
.form-input.has-value:not(:focus) {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

/* --- Better social proof on mobile with gradient border --- */
@media (max-width: 959px) {
  .social-proof {
    position: relative;
    background: rgba(12, 12, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .social-proof::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(from 180deg, transparent 50%, rgba(247,147,30,0.15), rgba(255,64,129,0.2), rgba(204,68,204,0.15), transparent 50%);
    z-index: -1;
    animation: rotateBorder 8s linear infinite;
  }
}

/* --- Auth card subtle entrance --- */
.auth-card {
  animation: cardEntrance 0.6s var(--transition) both;
}
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Confetti canvas pointer events fix --- */
#confetti-canvas {
  pointer-events: none;
}

/* ============================================================
   v15 — AUTH FLOW IMPROVEMENTS
   ============================================================ */

/* --- Gradient border on focused social buttons --- */
.social-btn:focus-visible {
  border-color: rgba(255, 64, 129, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1);
}

/* --- Smoother card height transitions when switching panels --- */
.auth-card {
  transition: box-shadow 0.4s, min-height 0.4s var(--transition), height 0.4s var(--transition);
}

/* --- Better gradient label on focus --- */
.form-group:focus-within .form-label {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.25s var(--transition);
}

/* --- Improved forgot password link hover --- */
#show-forgot:hover,
#back-to-login:hover {
  color: var(--orange);
  transition: color 0.2s;
}

/* --- Better terms checkbox error state --- */
.terms-label.input-error {
  animation: shake 0.4s ease;
}
.terms-label.input-error input[type="checkbox"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* --- Smooth strength bar colour transitions --- */
.strength-fill {
  transition: width 0.4s var(--transition), background-color 0.4s var(--transition);
}

/* --- Success overlay gradient backdrop --- */
.login-success-overlay.visible {
  background: linear-gradient(135deg, rgba(5,5,7,0.96), rgba(12,12,16,0.98));
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
}

/* --- Improved confetti canvas stacking --- */
.login-success-overlay .success-content {
  z-index: 2;
  position: relative;
}

/* --- Better mobile keyboard support --- */
@media (max-width: 959px) and (max-height: 450px) {
  .mobile-brand { display: none !important; }
  .auth-logo { display: none !important; }
  .auth-footer { display: none; }
  .trust-badge { display: none; }
  .social-proof { display: none !important; }
  .auth-card { padding: 16px 14px; }
  .auth-title { font-size: 18px; margin-bottom: 2px; }
  .auth-subtitle { font-size: 12px; margin-bottom: 14px; }
  .form-group { margin-bottom: 12px; }
}

/* --- Password requirements animation on met --- */
.pw-requirements li.met svg {
  animation: reqCheck 0.3s var(--transition);
  color: var(--green);
}
@keyframes reqCheck {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* --- Brand panel feature hover effect --- */
.brand-feature {
  transition: transform 0.2s var(--transition);
  padding: 8px;
  border-radius: 10px;
}
.brand-feature:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.02);
}

/* --- Better social button gradient on hover --- */
.social-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255, 64, 129, 0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 1px rgba(255, 64, 129, 0.05);
}

/* --- Smooth auto-fade for errors --- */
.auth-error.auto-fade {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.5s var(--transition), transform 0.5s var(--transition);
}
