/* ==========================================================================
   Apo Aworan (Art Quiver) — Authentication Flow Stylesheet
   Brand Design System & Color Palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Karla:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Brand Tokens */
  --color-plum: #33172C;
  --color-plum-dark: #1f0b1a;
  --color-plum-deep: #160713;
  --color-plum-light: #48213f;
  
  --color-gold: #FEC219;
  --color-gold-hover: #e5af15;
  --color-gold-muted: rgba(254, 194, 25, 0.15);
  --color-gold-border: rgba(254, 194, 25, 0.4);
  --color-gold-fg: #220f1e;

  --color-white: #ffffff;
  --color-white-90: rgba(255, 255, 255, 0.9);
  --color-white-70: rgba(255, 255, 255, 0.7);
  --color-white-40: rgba(255, 255, 255, 0.4);
  --color-white-20: rgba(255, 255, 255, 0.2);
  --color-white-15: rgba(255, 255, 255, 0.15);
  --color-white-10: rgba(255, 255, 255, 0.1);
  --color-white-08: rgba(255, 255, 255, 0.08);

  /* Status Colors */
  --color-destructive: #f87171;
  --color-destructive-bg: rgba(239, 68, 68, 0.12);
  --color-destructive-border: rgba(239, 68, 68, 0.3);
  
  --color-amber: #f59e0b;
  --color-amber-bg: rgba(245, 158, 11, 0.12);
  --color-amber-border: rgba(245, 158, 11, 0.35);

  --color-emerald: #10b981;
  --color-emerald-bg: rgba(16, 185, 129, 0.12);
  --color-emerald-border: rgba(16, 185, 129, 0.3);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Karla', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Radii */
  --radius-xl: 1rem;       /* rounded-2xl (16px) */
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;   /* rounded-full */

  /* Shadows */
  --shadow-input: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 10px 28px rgba(254, 194, 25, 0.25);
  --shadow-hero-text: 0 4px 24px rgba(0, 0, 0, 0.7);

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: var(--font-sans);
  background-color: var(--color-plum);
  color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 65% 50% at 15% 25%, rgba(254, 194, 25, 0.07), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(254, 194, 25, 0.05), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(51, 23, 44, 0.5), var(--color-plum-dark));
  background-attachment: fixed;
}

/* Accessible hidden text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Layout Wrapper */
.auth-page-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 100vh;
}

.auth-split-container {
  display: flex;
  flex: 1 1 auto;
  min-height: calc(100vh - 64px); /* Space reserved for footer */
  width: 100%;
}

/* Left Section: Form Canvas (65% on Desktop lg breakpoint) */
.auth-form-side {
  width: 100%;
  min-height: 100%;
  padding: 2.25rem 1.5rem 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .auth-form-side {
    padding: 3rem 2.5rem 3.5rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .auth-form-side {
    width: 65%;
    padding: 3.5rem 4.5rem 4rem 4.5rem;
  }
}

@media (min-width: 1280px) {
  .auth-form-side {
    padding: 4rem 6rem 4.5rem 6rem;
  }
}

.auth-form-content {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

/* Top Navigation: Floating Pill Button */
.auth-top-nav {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.back-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white-10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-white-15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--color-white);
  padding: 0.55rem 1.15rem;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

.back-pill-btn:hover,
.back-pill-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(254, 194, 25, 0.4);
  color: var(--color-gold);
  transform: translateX(-2px);
  outline: none;
  box-shadow: 0 0 0 2px rgba(254, 194, 25, 0.3);
}

.back-pill-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.back-pill-btn:hover svg {
  transform: translateX(-3px);
}

/* Brand Header */
.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-decoration: none;
  color: var(--color-white);
}

.auth-brand-logo img {
  height: 38px;
  width: auto;
  /* The plum logo disappears on the dark panel — render it white, as the other apps do. */
  filter: brightness(0) invert(1);
}

.auth-brand-logo span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.auth-brand-logo span b {
  color: var(--color-gold);
  font-weight: 700;
}

/* Header Text (Welcome back / Create Account) */
.auth-header {
  margin-bottom: 2rem;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 2.5rem; /* ~4xl */
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-gold);
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .auth-title {
    font-size: 3rem; /* 48px */
  }
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--color-white-70);
  font-weight: 400;
  line-height: 1.5;
}

/* Email Verification Banner (Conditional State) */
.email-verification-banner {
  display: none; /* activated dynamically or with .active */
  background: var(--color-amber-bg);
  border: 1px solid var(--color-amber-border);
  border-radius: var(--radius-xl);
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideDown 0.35s ease-out forwards;
}

.email-verification-banner.active {
  display: block;
}

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

.banner-content-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.banner-icon {
  flex-shrink: 0;
  color: var(--color-amber);
  margin-top: 2px;
}

.banner-icon svg {
  width: 22px;
  height: 22px;
}

.banner-body {
  flex: 1;
}

.banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.banner-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.banner-link:hover {
  color: #fff;
}

.resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #220f1e;
  background: var(--color-gold);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.resend-btn:hover:not(:disabled) {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
}

.resend-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.resend-feedback {
  font-size: 0.8rem;
  color: #34d399;
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.resend-feedback.active {
  display: inline-flex;
}

/* Error Display Box (Red Alert Badge) */
.auth-error-box {
  display: none; /* activated dynamically */
  background: var(--color-destructive-bg);
  border: 1px solid var(--color-destructive-border);
  color: var(--color-destructive);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  animation: shake 0.35s ease-in-out;
}

.auth-error-box.active {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

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

.auth-error-box svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.auth-error-box .error-text {
  flex: 1;
  color: #fca5a5;
  line-height: 1.4;
}

.auth-error-dismiss {
  background: transparent;
  border: none;
  color: var(--color-destructive);
  cursor: pointer;
  padding: 0;
  display: flex;
  opacity: 0.7;
}

.auth-error-dismiss:hover {
  opacity: 1;
}

/* Form Layout */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-white-90);
  letter-spacing: 0.01em;
}

.forgot-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover,
.forgot-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

/* Frosted Glass Input Field Container */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-left {
  position: absolute;
  left: 1.15rem;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: var(--color-white-40);
  transition: color 0.2s ease;
  z-index: 2;
}

.input-icon-left svg {
  width: 19px;
  height: 19px;
}

/* Frosted glass effect: bg-white/10, border-white/20, rounded to rounded-2xl,
   text text-white, placeholder:text-white/40, focus:ring-gold/50 */
.form-input {
  width: 100%;
  background: var(--color-white-10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-white-20);
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-white);
  padding: 0.95rem 1.15rem 0.95rem 3rem;
  outline: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-input);
}

.form-input::placeholder {
  color: var(--color-white-40);
  font-weight: 400;
}

.form-input:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(254, 194, 25, 0.45);
}

.input-wrapper:focus-within .input-icon-left {
  color: var(--color-gold);
}

/* Password Toggle Icon Button */
.password-toggle-btn {
  position: absolute;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--color-white-40);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  z-index: 2;
}

.password-toggle-btn:hover {
  color: var(--color-white);
}

.password-toggle-btn:focus-visible {
  color: var(--color-gold);
  outline: 2px solid var(--color-gold);
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Password Validation Hint */
.password-match-hint {
  font-size: 0.775rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.password-match-hint.valid {
  color: #34d399;
}

.password-match-hint.invalid {
  color: #f87171;
}

.password-match-hint svg {
  width: 14px;
  height: 14px;
}

/* Role / Account Type Selector (3-Column Radio Card Grid) */
.role-selector-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 while collector & distributor are hidden */
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .role-grid {
    grid-template-columns: 1fr;
  }
}

.role-card-label {
  cursor: pointer;
  user-select: none;
}

.role-radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Unselected role card: bg-white/10 border-white/20 text-white/70 hover:border-gold/40 */
.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1rem 0.65rem;
  background: var(--color-white-10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-white-20);
  border-radius: var(--radius-xl);
  color: var(--color-white-70);
  transition: var(--transition-fast);
  height: 100%;
}

.role-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(254, 194, 25, 0.4);
  color: var(--color-white);
  transform: translateY(-2px);
}

.role-card-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.role-card-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-card-desc {
  font-size: 0.7rem;
  line-height: 1.25;
  color: var(--color-white-40);
}

/* Selected role card: bg-gold/20 border-gold text-gold ring-1 ring-gold/60 */
.role-radio-input:checked + .role-card {
  background: rgba(254, 194, 25, 0.2);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 0 1px rgba(254, 194, 25, 0.6), 0 4px 16px rgba(254, 194, 25, 0.15);
}

.role-radio-input:checked + .role-card .role-card-desc {
  color: rgba(254, 194, 25, 0.85);
}

.role-radio-input:focus-visible + .role-card {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Checkbox: Remember this device with gold accent styling */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.custom-checkbox-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.custom-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox-box {
  width: 20px;
  height: 20px;
  background: var(--color-white-10);
  border: 1px solid var(--color-white-20);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--color-plum-dark);
}

.custom-checkbox-box svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-checkbox-input:checked + .custom-checkbox-box {
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(254, 194, 25, 0.3);
}

.custom-checkbox-input:checked + .custom-checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.custom-checkbox-input:focus-visible + .custom-checkbox-box {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--color-white-90);
  cursor: pointer;
  user-select: none;
}

/* Primary Submit Button: Gold background, rounded-2xl, loading spinner */
.btn-gold-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--color-gold);
  color: var(--color-gold-fg);
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1rem 1.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-gold);
  margin-top: 0.5rem;
  position: relative;
}

.btn-gold-submit:hover:not(:disabled) {
  background: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(254, 194, 25, 0.35);
}

.btn-gold-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-gold-submit:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.btn-gold-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* Loader2 Spinner */
.spinner-icon {
  animation: spin 0.85s linear infinite;
  width: 20px;
  height: 20px;
  display: none;
}

.btn-gold-submit.loading .spinner-icon {
  display: inline-block;
}

.btn-gold-submit.loading .btn-text-content {
  opacity: 0.9;
}

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

/* Divider: "Or continue with" */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--color-white-40);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-white-15);
}

.auth-divider span {
  padding: 0 1rem;
}

/* Google Sign-In Button: Frosted pill with official multi-color Google SVG */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--color-white-08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-white-20);
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-google svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Footer Switcher (Don't have an account? Sign Up) */
.auth-footer-switcher {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-white-70);
}

.auth-footer-switcher a {
  color: var(--color-gold);
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.35rem;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.auth-footer-switcher a:hover,
.auth-footer-switcher a:focus-visible {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

/* Right Section: Decorative Hero Side (35% width, hidden on mobile) */
.auth-hero-side {
  display: none;
}

@media (min-width: 1024px) {
  .auth-hero-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35%;
    position: relative;
    background-color: var(--color-plum-dark);
    background-image: url('assets/login.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 3.5rem 3rem 4rem 3rem;
    overflow: hidden;
    border-left: 1px solid rgba(254, 194, 25, 0.15);
  }
}

/* Rich gradient overlay: from-plum/90 via-plum/80 to-plum/80 */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(51, 23, 44, 0.92) 0%,
    rgba(51, 23, 44, 0.80) 50%,
    rgba(51, 23, 44, 0.88) 100%
  );
  z-index: 1;
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: center;
  max-width: 380px;
  margin: 0 auto;
}

.hero-quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--color-gold);
  opacity: 0.4;
  margin-bottom: 1.5rem;
  user-select: none;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-white);
  text-shadow: var(--shadow-hero-text);
  margin-bottom: 1.5rem;
}

.hero-headline b {
  color: var(--color-gold);
  font-weight: 700;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  background: rgba(254, 194, 25, 0.15);
  border: 1px solid rgba(254, 194, 25, 0.35);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 2rem;
}

.hero-artwork-caption {
  font-size: 0.8rem;
  color: var(--color-white-70);
  line-height: 1.5;
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
}

/* Global Full-Width Golden Footer Bar: bg-gold, text-gold-foreground */
.auth-gold-footer {
  width: 100%;
  background-color: var(--color-gold);
  color: var(--color-gold-fg);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 20;
}

@media (min-width: 768px) {
  .auth-gold-footer {
    padding: 1.15rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .auth-gold-footer {
    padding: 1.15rem 4rem;
  }
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.825rem;
  color: var(--color-gold-fg);
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-gold-fg);
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 600;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  opacity: 0.75;
  text-decoration: underline;
  outline: none;
}

/* Toast Notification Popup */
.auth-toast {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-plum-light);
  border: 1px solid var(--color-gold);
  color: #fff;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
}

.auth-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.auth-toast-icon {
  color: var(--color-gold);
  flex-shrink: 0;
}

.auth-toast-text {
  font-size: 0.85rem;
  line-height: 1.35;
}
