/* ==========================================================================
   LuxxBrand — CSS Design System & Components
   A luxury goods brokerage static site.
   Warm dark+gold palette with selective liquid glass effects.
   Mobile-first, no frameworks — pure CSS with custom properties.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

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

a {
  color: inherit;
}

a:visited {
  color: inherit;
}

/* --------------------------------------------------------------------------
   3. Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors — refined palette */
  --primary: #0F0F0F;
  --secondary: #1A1A1A;
  --gold: #C9A96E;
  --gold-hover: #D4BC8B;
  --gold-dark: #92620A;
  --bg: #F5F0EB;
  --text: #0A0A0A;
  --text-muted: #6B6B6B;
  --border: #D6D3D1;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-light: rgba(255, 255, 255, 0.60);
  --glass-border: rgba(255, 255, 255, 0.12);

  /* New tokens */
  --accent: #2A2A2A;
  --grain-opacity: 0.03;
  --glow: rgba(201, 169, 110, 0.15);

  /* Z-index scale */
  --z-cards: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-nav: 50;
  --z-progress: 51;
  --z-mobile-menu: 100;
}

/* --------------------------------------------------------------------------
   4. Base / Typography
   -------------------------------------------------------------------------- */
html {
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3 {
  font-family: 'Cormorant', serif;
}

h1 {
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: 0;
}

h3 {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Film Grain Overlay
   -------------------------------------------------------------------------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: 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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --------------------------------------------------------------------------
   Scroll Progress Bar
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  z-index: var(--z-progress);
  transition: none;
}

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

*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   6. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

.section {
  padding: 60px 0;
}

@media (min-width: 1200px) {
  .section {
    padding: 100px 0;
  }
}

/* --------------------------------------------------------------------------
   7. Glass Effects
   -------------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.glass-light {
  background: var(--glass-bg-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 8px;
}

@supports not (backdrop-filter: blur(1px)) {
  .glass {
    background: rgba(15, 15, 15, 0.9);
  }

  .glass-light {
    background: rgba(245, 240, 235, 0.95);
  }
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 32px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms ease-out;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--gold-hover);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--primary);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   9. Form Inputs
   -------------------------------------------------------------------------- */
.form-input {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: inherit;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}

.form-input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--glow);
}

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

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   10. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

@media (min-width: 768px) {
  .nav-inner {
    padding: 0 48px;
  }
}

.nav-logo,
.nav-logo .char {
  font-family: 'Cormorant', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #FFFFFF !important;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-logo .char { display: inline-block; }

.nav-links {
  display: none;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 32px;
  }
}

.nav-links a,
.nav-links a:visited {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  text-decoration: none;
  position: relative;
  transition: color 200ms ease-out;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 200ms ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
  animation: activePulse 1.5s ease-out 0.5s 1;
}
@keyframes activePulse {
  0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; }
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--bg);
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-hamburger {
    display: none;
  }
}

/* Hamburger Morph */
.nav-hamburger svg line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.is-open .hamburger-top { transform: translate(0, 6px) rotate(45deg); }
.nav-hamburger.is-open .hamburger-mid { opacity: 0; }
.nav-hamburger.is-open .hamburger-bot { transform: translate(0, -6px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--primary);
  z-index: var(--z-mobile-menu);
  transition: right 300ms ease-out;
  padding: 24px;
}

.mobile-menu.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: calc(var(--z-mobile-menu) - 1);
  transition: opacity 300ms ease-out;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: var(--bg);
  text-decoration: none;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--secondary);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary);
  border-top: 1px solid var(--gold);
  color: var(--bg);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 48px;
  }
}

.footer-logo {
  font-family: 'Cormorant', serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-tagline {
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: var(--bg);
  text-decoration: none;
  display: block;
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-social a {
  color: var(--bg);
  transition: color 200ms ease-out;
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--secondary);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(15, 15, 15, 0.65), rgba(15, 15, 15, 0.75)), url('../images/hero.jpg') center/cover no-repeat;
  color: var(--bg);
  padding-top: 72px;
}

.hero canvas { position: absolute; inset: 0; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero.has-particles { background: var(--primary); }

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
}

.hero-tagline {
  font-weight: 300;
  font-size: 1.125rem;
  margin: 24px 0 40px;
  color: var(--border);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn:hover {
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.2);
}

.hero-short {
  min-height: 50vh;
}

.hero-40 {
  min-height: 40vh;
}

/* --------------------------------------------------------------------------
   13. Intro Strip
   -------------------------------------------------------------------------- */
.intro-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   14. Category Scroll Track
   -------------------------------------------------------------------------- */
.scroll-track-wrapper {
  position: relative;
  overflow: visible;
}

.scroll-track-wrapper::before,
.scroll-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 1;
  pointer-events: none;
}

.scroll-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.scroll-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0;
  cursor: grab;
}

.scroll-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.scroll-track::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 280px;
  height: 360px;
  scroll-snap-align: start;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  cursor: pointer;
  text-decoration: none;
  color: white;
  transition: transform 200ms ease-out, border-color 200ms ease-out;
  border: 2px solid transparent;
  background: linear-gradient(var(--angle, 135deg), var(--primary), var(--secondary), #3d2e24);
  background-size: cover;
  background-position: center;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
  pointer-events: none;
}

.category-card:hover {
  transform: scale(1.02);
  border-color: var(--gold);
}

.category-name {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant', serif;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Scroll Arrows */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: white;
  cursor: pointer;
  z-index: var(--z-sticky);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease-out;
}

.scroll-arrow:hover {
  background: rgba(15, 15, 15, 0.9);
}

.scroll-arrow-left {
  left: 8px;
}

.scroll-arrow-right {
  right: 8px;
}

@media (hover: hover) {
  .scroll-arrow {
    display: flex;
  }
}

/* Scroll Progress Dots */
.scroll-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.scroll-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: all 0.3s ease; }
.scroll-dot.active { width: 8px; height: 8px; background: var(--gold); }

/* --------------------------------------------------------------------------
   15. Featured Items / Product Cards
   -------------------------------------------------------------------------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .featured-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px 8px 0 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image { transform: scale(1.08); }

.product-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(201, 169, 110, 0.3), transparent 50%);
  opacity: 0; transition: opacity 0.4s ease; z-index: 1; pointer-events: none; border-radius: 8px;
}

.product-card:hover::before { opacity: 1; }

.product-info {
  padding: 16px;
}

.product-brand {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-name {
  font-family: 'Cormorant', serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
}

.product-price {
  color: var(--gold-dark);
  font-weight: 600;
  margin: 8px 0 16px;
}

/* --------------------------------------------------------------------------
   16. Trust Banner
   -------------------------------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 16px;
}

/* --------------------------------------------------------------------------
   17. Mission (About Page)
   -------------------------------------------------------------------------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.placeholder-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: url('../images/about-mission.jpg') center/cover no-repeat;
  transition: transform 4s ease, border-color 1.2s ease;
  overflow: hidden;
  border: 2px solid transparent;
}

.placeholder-image:hover {
  transform: scale(1.03) translate(1%, -1%);
}

.placeholder-image.border-drawn {
  border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   18. Values (About Page)
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  perspective: 800px;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  padding: 32px;
  border-top: 2px solid var(--gold);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px var(--glow);
  background: rgba(255, 255, 255, 0.7);
}

.value-card h3 {
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   19. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.contact-form-card {
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-confirmation {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.25);
  color: var(--gold-dark);
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
  display: none;
}

.form-confirmation.visible {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* Success Panel (register page) */
.form-success {
  text-align: center;
  padding: 24px 0;
}

.form-success-icon {
  color: var(--gold);
  margin-bottom: 16px;
}

.form-success h2 {
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-details h3 {
  margin-bottom: 16px;
}

.contact-detail-item {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-detail-item p { position: relative; display: inline-block; }
.contact-detail-item a, .contact-detail-item p { position: relative; }
.contact-details a::after, .contact-detail-item p::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s ease;
}
.contact-details a:hover::after, .contact-detail-item:hover p::after { width: 100%; }

/* --------------------------------------------------------------------------
   20. Login
   -------------------------------------------------------------------------- */
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.login-branding {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary), #1A1A1A);
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
  padding: 48px;
  padding-top: calc(48px + env(safe-area-inset-top, 0px));
}

.login-branding canvas { position: absolute; inset: 0; }
.login-branding > *:not(canvas) { position: relative; z-index: 1; }
.login-branding.has-particles { background: var(--primary); animation: none; }

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.login-logo {
  font-family: 'Cormorant', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.login-tagline {
  font-weight: 300;
  color: var(--bg);
  margin-top: 12px;
  text-align: center;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 48px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 48px;
}

.login-card h1 {
  margin-bottom: 32px;
}

.login-forgot {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 200ms ease-out;
}

.login-forgot:hover {
  color: var(--gold);
}

.login-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.login-signup {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.login-signup a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 200ms ease-out;
}

@media (max-width: 767px) {
  .login-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 20vh 1fr;
  }

  .login-card {
    padding: 24px;
  }
}

/* --------------------------------------------------------------------------
   Custom Cursor
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  body.cursor-ready {
    cursor: none;
  }

  body.cursor-ready a,
  body.cursor-ready button,
  body.cursor-ready [role="button"] {
    cursor: none;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-circle.is-hovering {
  width: 60px;
  height: 60px;
}

.cursor-circle.is-morph {
  width: 80px;
  height: 80px;
  background: var(--gold);
  border-color: var(--gold);
}

.cursor-circle .cursor-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-circle.is-morph .cursor-text {
  opacity: 1;
}

.cursor-circle.over-glass {
  mix-blend-mode: normal;
  opacity: 0.9;
}

.cursor-dot.over-glass {
  mix-blend-mode: normal;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Floating Labels
   -------------------------------------------------------------------------- */
.form-group {
  position: relative;
}

.form-group:not(.form-group-select) label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
  transform-origin: left top;
  margin-bottom: 0;
}

.form-group:not(.form-group-select) .form-input:focus ~ label,
.form-group:not(.form-group-select) .form-input.has-value ~ label,
.form-group:not(.form-group-select) .password-wrapper:focus-within ~ label,
.form-group:not(.form-group-select) .password-wrapper.has-value ~ label {
  transform: translateY(-24px);
  font-size: 0.75rem;
  color: var(--gold);
}

.form-group:not(.form-group-select) .form-input {
  padding-top: 16px;
}

.form-group-select label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group .form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--glow);
}

/* Checkmark draw */
.checkmark-icon .checkmark-path,
.checkmark-icon .checkmark-check {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.form-confirmation.visible .checkmark-path {
  animation: drawCheckmark 0.8s ease forwards;
}

.form-confirmation.visible .checkmark-check {
  animation: drawCheckmark 0.5s ease 0.5s forwards;
}

@keyframes drawCheckmark {
  to { stroke-dashoffset: 0; }
}

.form-confirmation.visible {
  animation: scaleIn 0.4s ease forwards;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Splitting.js Text Reveal
   -------------------------------------------------------------------------- */
.will-animate [data-splitting] .char,
[data-splitting].will-animate .char {
  opacity: 0;
  transform: translateY(30px);
  display: inline-block;
  transition: none;
}

.hero-tagline.will-reveal,
.hero-ctas.will-reveal {
  opacity: 0;
  transform: translateY(20px);
}

/* --------------------------------------------------------------------------
   Scroll Indicator
   -------------------------------------------------------------------------- */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: var(--gold); animation: scrollPulse 2s ease-in-out infinite; transition: opacity 0.5s ease;
}
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }
@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   Auth Page Animations
   -------------------------------------------------------------------------- */
.login-card { will-change: transform, opacity; }
.login-logo, .login-tagline { will-change: transform, opacity; }

.login-card .form-success.is-visible {
  animation: successReveal 0.6s ease forwards;
}

.login-card .form-success .form-success-icon {
  color: var(--gold);
}

.login-card .form-success.is-visible .form-success-icon svg {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheckmark 0.8s ease 0.3s forwards;
}

@keyframes successReveal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.login-spinner {
  animation: spinnerDash 1.5s ease-in-out infinite, spinnerRotate 1.5s linear infinite;
  margin-right: 8px; vertical-align: middle;
}
@keyframes spinnerDash { 0% { stroke-dashoffset: 88; } 50% { stroke-dashoffset: 22; } 100% { stroke-dashoffset: 88; } }
@keyframes spinnerRotate { 100% { transform: rotate(360deg); } }

.password-wrapper { position: relative; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px;
  transition: color 0.2s ease;
}
.password-toggle:hover { color: var(--gold); }

.btn-primary {
  background: linear-gradient(to right, var(--gold-hover) 50%, var(--gold) 50%);
  background-size: 200% 100%; background-position: right;
  transition: background-position 0.4s ease, color 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover { background-position: left; }


/* --------------------------------------------------------------------------
   21. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-indicator { animation: none; }
  body::after { display: none; }
  .will-animate [data-splitting] .char,
  [data-splitting].will-animate .char { opacity: 1; transform: none; }
  .cursor-dot, .cursor-circle { display: none; }
}
