/* ══════════════════════════════════════════════════════════════════════
   auth.css — Realistic, Modern, Production-Grade Authentication Styling
   (Login & Signup Pages — Split Card Layout matching NuraXQ design)
   ══════════════════════════════════════════════════════════════════════ */

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

body.auth-page {
  font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  background: var(--bg, #F8FAFC);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text, #0F172A);
  position: relative;
  overflow-x: hidden;
}

/* Subtle modern ambient background glow */
body.auth-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1300px;
  height: 520px;
  background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.08) 0%, rgba(109, 40, 217, 0.03) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

body.dark-theme.auth-page::before {
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.12) 0%, rgba(109, 40, 217, 0.05) 50%, transparent 75%);
}

/* ── Auth Top Header ── */
.auth-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: color-mix(in srgb, var(--surface, #FFFFFF) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border, #E2E8F0);
}

.auth-header .logo {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 80px;
  min-width: 40px;
}

.auth-header .logo .header__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  width: auto;
}

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

.auth-header .logo img.auth-logo-icon,
.auth-header .logo img.header__logo-img {
  display: block !important;
  width: auto !important;
  height: 40px !important;
  max-height: 40px !important;
  max-width: 60px !important;
  margin: 0 !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  animation: logoFloat 3s ease-in-out infinite;
  will-change: transform;
}

@media (max-width: 768px) {
  .auth-header .logo,
  .auth-header .logo .header__logo-link {
    width: auto !important;
    max-width: 60px !important;
    min-width: 32px !important;
  }
  .auth-header .logo img.auth-logo-icon,
  .auth-header .logo img.header__logo-img {
    height: 36px !important;
    max-height: 36px !important;
    max-width: 52px !important;
  }
}

@media (max-width: 480px) {
  .auth-header .logo img.auth-logo-icon,
  .auth-header .logo img.header__logo-img {
    height: 32px !important;
    max-height: 32px !important;
    max-width: 46px !important;
  }
}

@media (max-width: 375px) {
  .auth-header .logo,
  .auth-header .logo .header__logo-link {
    max-width: 145px !important;
  }
}

/* Auth Screens (Login, Signup, Reset Password): Show ONLY original logo image, hide separate text */
body.auth-page .header__logo-text,
.auth-header .header__logo-text,
.auth-header .logo .header__logo-text,
.auth-banner-badge .header__logo-text,
.auth-card-logo-wrap .header__logo-text {
  display: none !important;
}

.auth-header .logo .header__logo-text {
  font-family: var(--font-display, 'Manrope', var(--font-body, 'Inter', sans-serif));
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #6B21A8 !important;
  line-height: 1;
  vertical-align: middle;
  transition: color 0.2s ease;
}

body.dark-theme .auth-header .logo .header__logo-text {
  color: #C084FC !important;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--muted, #64748B);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--surface-sunk, #F1F5F9);
  border: 1px solid var(--border, #E2E8F0);
  transition: all 0.2s ease;
}

.auth-back-link:hover {
  color: var(--text, #0F172A);
  border-color: var(--muted, #94A3B8);
  transform: translateX(-2px);
}

/* ── Centered Main Wrapper ── */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3.5rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ── Auth Split Card (Matches Reference Image) ── */
.auth-split-card {
  width: 100%;
  max-width: 980px;
  min-height: 580px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 24px;
  box-shadow: 0 24px 64px -12px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  animation: cardFadeUp 0.4s ease-out;
}

.auth-split-card.signup-split-card {
  max-width: 1040px;
}

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

/* ── Subtle Ambient Glow for Auth Badge ── */
@keyframes gentleLogoHover {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.2));
  }
  50% {
    transform: translateY(-4px);
    filter: drop-shadow(0 4px 14px rgba(124, 58, 237, 0.35));
  }
}

.auth-page .auth-banner-badge {
  animation: gentleLogoHover 3s ease-in-out infinite;
  will-change: transform;
}

/* ── Form Column (Left Side) ── */
.auth-form-column {
  padding: 2.75rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface, #FFFFFF);
  position: relative;
}

.auth-card-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 1.5rem auto;
  text-align: center;
}

.auth-card-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  margin: 0 auto;
}

.auth-card-brand-icon {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: inline-block;
}

.auth-card-brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text, #0F172A);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-card-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text, #0F172A);
  letter-spacing: -0.025em;
  margin: 0 0 0.35rem;
  line-height: 1.25;
  text-align: center;
}

.auth-card-header p {
  font-size: 0.925rem;
  color: var(--muted, #64748B);
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* ── Form Controls ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.form-group label {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.12);
  color: #7C3AED;
  font-size: 1rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.85rem;
  border: 1.5px solid var(--border, #E2E8F0);
  border-radius: 12px;
  background: var(--surface-sunk, #F8FAFC);
  color: var(--text, #0F172A);
  font-size: 0.925rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.form-control::placeholder {
  color: #94A3B8;
  opacity: 0.85;
}

.form-control:focus {
  outline: none;
  border-color: #7C3AED !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3.5px rgba(124, 58, 237, 0.15) !important;
}

.input-group:focus-within .input-icon {
  background: #7C3AED;
  color: #FFFFFF;
}

body.dark-theme .input-icon {
  background: rgba(168, 85, 247, 0.18);
  color: #C4B5FD;
}

body.dark-theme .input-group:focus-within .input-icon {
  background: #7C3AED;
  color: #FFFFFF;
}

/* ── Signup Form Icons (matches NuraXQ purple theme) ── */
.signup-split-card .input-icon {
  background: rgba(124, 58, 237, 0.12);
  color: #7C3AED;
}

.signup-split-card .input-group:focus-within .input-icon {
  background: #7C3AED;
  color: #FFFFFF;
}

body.dark-theme .signup-split-card .input-icon {
  background: rgba(168, 85, 247, 0.18);
  color: #C4B5FD;
}

body.dark-theme .signup-split-card .input-group:focus-within .input-icon {
  background: #7C3AED;
  color: #FFFFFF;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.15rem;
  color: #64748B;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  z-index: 2;
}

.password-toggle:hover {
  color: #0F172A;
  background: rgba(0, 0, 0, 0.05);
}

/* Forgot Password Link */
.forgot-password-link {
  font-size: 0.825rem;
  color: #7C3AED;
  text-decoration: none;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  transition: color 0.2s;
}

.forgot-password-link:hover {
  text-decoration: underline;
  color: #6D28D9;
}

/* ── Name Row Responsive Grid ── */
.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

/* ── Checkboxes ── */
.auth-checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #7C3AED;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}

.auth-checkbox-group label {
  color: var(--muted, #64748B);
  font-size: 0.875rem;
  line-height: 1.4;
  cursor: pointer;
}

.auth-checkbox-group a {
  color: #7C3AED;
  font-weight: 600;
  text-decoration: underline;
}

/* ── Primary Submit Button (Modern Vibrant Purple Style) ── */
.auth-submit-btn {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%) !important;
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  margin-top: 0.5rem;
}

.auth-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #6D28D9 0%, #5B21B6 100%) !important;
  transform: none;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.auth-submit-btn:active:not(:disabled) {
  transform: none;
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* ── Auth Footer ── */
.auth-footer {
  text-align: center;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border, #E2E8F0);
  font-size: 0.9rem;
  color: var(--muted, #64748B);
}

.auth-footer a {
  color: #7C3AED;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
  color: #6D28D9;
}

/* ── Banner Column (Right Side - Vibrant Purple Hero Panel) ── */
.auth-banner-column {
  background: linear-gradient(145deg, #4C1D95 0%, #6D28D9 40%, #7C3AED 75%, #8B5CF6 100%);
  padding: 3.5rem 2.75rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
}

/* Specific vertical balance for Signup page right card (Option B: naturally fills available space) */
.signup-split-card .auth-banner-column {
  justify-content: center;
  padding: 3.5rem 2.75rem;
}

.signup-split-card .auth-banner-content {
  max-width: 390px;
  width: 100%;
}

.signup-split-card .auth-banner-badge {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  margin: 0 auto 1.5rem;
}

.signup-split-card .auth-banner-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.signup-split-card .auth-banner-content h2 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.signup-split-card .auth-banner-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.92);
}

.signup-split-card .auth-banner-features {
  gap: 1rem;
  width: 100%;
}

.signup-split-card .auth-feature-item {
  padding: 13px 18px;
  font-size: 0.9rem;
  border-radius: 14px;
  gap: 14px;
}

.signup-split-card .auth-feature-item i {
  font-size: 1.35rem;
}

/* Ambient glow & decorative background geometry */
.auth-banner-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-banner-ambient::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
}

.auth-banner-ambient::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.3) 0%, rgba(109, 40, 217, 0) 70%);
}

.auth-banner-content {
  position: relative;
  z-index: 2;
  max-width: 360px;
  text-align: center;
}

.auth-banner-badge {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.auth-banner-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.auth-banner-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.auth-banner-desc {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.auth-banner-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  width: 100%;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease;
}

.auth-feature-item:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.14);
}

.auth-feature-item i {
  font-size: 1.25rem;
  color: #DDD6FE;
  flex-shrink: 0;
}

/* ── Fallback Single-Card Support (for reset-password.html etc.) ── */
.auth-card {
  width: 100%;
  max-width: 440px !important;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 20px;
  box-shadow: 0 16px 40px -12px rgba(16, 20, 31, 0.08), 0 1px 3px rgba(16, 20, 31, 0.04);
  padding: 2.75rem 2.5rem;
  box-sizing: border-box;
  animation: cardFadeUp 0.4s ease-out;
}

.auth-card.signup-card {
  max-width: 500px !important;
}

.auth-card-logo-wrap {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-card-logo {
  height: 58px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: inline-block;
  transition: transform 0.2s ease;
}

/* ── Dark Mode Tweaks ── */
body.dark-theme .auth-split-card {
  background: var(--surface, #111827);
  border-color: var(--border, #1F2937);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.5);
}

body.dark-theme .auth-form-column {
  background: var(--surface, #111827);
}

body.dark-theme .auth-card-brand-name,
body.dark-theme .auth-card-header h1 {
  color: #F3F4F6;
}

body.dark-theme .form-group label {
  color: #94A3B8;
}

body.dark-theme .form-control {
  background: #1F2937;
  border-color: #374151;
  color: #F3F4F6;
}

body.dark-theme .form-control:focus {
  background: #111827 !important;
  border-color: #8B5CF6 !important;
  box-shadow: 0 0 0 3.5px rgba(139, 92, 246, 0.25) !important;
}

body.dark-theme .password-toggle {
  color: #94A3B8;
}

body.dark-theme .password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #F3F4F6;
}

body.dark-theme .auth-back-link {
  background: #1F2937;
  border-color: #374151;
  color: #94A3B8;
}

body.dark-theme .auth-back-link:hover {
  border-color: #64748B;
  color: #F3F4F6;
}

body.dark-theme .auth-footer {
  border-color: #1F2937;
  color: #94A3B8;
}

body.dark-theme .auth-footer a {
  color: #A78BFA;
}

body.dark-theme .auth-card {
  background: var(--surface, #111827);
  border-color: var(--border, #1F2937);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* ══════════════════════════════════════════════════════════════════════
   Responsive Mobile & Tablet Layout (Stack: Left on Top, Right on Bottom)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .auth-main {
    padding: 1.5rem 1rem 3rem;
  }

  /* Split container stacks into a unified vertical column */
  .auth-split-card,
  .auth-split-card.signup-split-card,
  .auth-split-card.login-split-card {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    min-height: auto !important;
    height: auto !important;
    max-width: 520px !important;
    width: 100% !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  }

  /* 1. Right-hand side section/card — TOP */
  .auth-split-card .auth-banner-column,
  .signup-split-card .auth-banner-column,
  .login-split-card .auth-banner-column {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 2.25rem 1.75rem 2rem !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border, #E2E8F0) !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  /* 2. Left-hand side section (Form) — BOTTOM */
  .auth-split-card .auth-form-column,
  .signup-split-card .auth-form-column,
  .login-split-card .auth-form-column {
    order: 2 !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 2.25rem 1.75rem 2.5rem !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
  }

  .auth-banner-content,
  .signup-split-card .auth-banner-content {
    max-width: 100% !important;
    width: 100% !important;
  }

  .auth-banner-badge,
  .signup-split-card .auth-banner-badge {
    width: 62px !important;
    height: 62px !important;
    border-radius: 18px !important;
    margin: 0 auto 1rem !important;
  }

  .auth-banner-logo {
    height: 34px !important;
  }

  .auth-banner-content h2,
  .signup-split-card .auth-banner-content h2 {
    font-size: 1.35rem !important;
    margin-bottom: 0.5rem !important;
  }

  .auth-banner-desc,
  .signup-split-card .auth-banner-desc {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.25rem !important;
  }

  .auth-banner-features,
  .signup-split-card .auth-banner-features {
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .auth-feature-item,
  .signup-split-card .auth-feature-item {
    padding: 9px 12px !important;
    font-size: 0.825rem !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 600px) {
  .auth-header {
    padding: 0.85rem 1.15rem;
  }

  .auth-main {
    padding: 1rem 0.75rem 2.25rem !important;
  }

  .auth-split-card,
  .auth-split-card.signup-split-card,
  .auth-split-card.login-split-card {
    border-radius: 16px !important;
    max-width: 100% !important;
  }

  /* 1. Right-hand side section/card — TOP */
  .auth-split-card .auth-banner-column,
  .signup-split-card .auth-banner-column,
  .login-split-card .auth-banner-column {
    padding: 2rem 1.15rem 1.75rem !important;
    border-bottom: 1px solid var(--border, #E2E8F0) !important;
  }

  /* 2. Left-hand side section (Form) — BOTTOM */
  .auth-split-card .auth-form-column,
  .signup-split-card .auth-form-column,
  .login-split-card .auth-form-column {
    padding: 1.75rem 1.15rem 2rem !important;
    border-bottom: none !important;
  }

  .name-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .auth-card-header h1 {
    font-size: 1.45rem;
  }

  .auth-card-brand-icon {
    height: 32px;
  }

  .auth-card-brand-name {
    font-size: 1.3rem;
  }
}

/* ── Auth Alerts & Notification States ── */
.auth-alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

.auth-alert i {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065F46;
}

body.dark-theme .auth-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #991B1B;
}

body.dark-theme .auth-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.auth-alert-info {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #5B21B6;
}

body.dark-theme .auth-alert-info {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: #DDD6FE;
}

.auth-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.auth-icon-circle.success {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.auth-icon-circle.brand {
  background: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
}

.auth-token-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  word-break: break-all;
}

body.dark-theme .auth-token-chip {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.auth-help-text {
  font-size: 0.8rem;
  color: var(--muted, #64748B);
  margin-top: 0.25rem;
}
