/*
 * Osuave - Kink Profiler
 * Dark, intimate editorial aesthetic
 */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
  /* Color Palette - Dark & Intimate */
  --color-void: #0a0a0b;
  --color-night: #111113;
  --color-charcoal: #1a1a1e;
  --color-smoke: #2a2a30;
  --color-ash: #4a4a55;
  --color-mist: #8a8a99;
  --color-cloud: #c5c5d0;
  --color-snow: #f0f0f5;

  /* Accent - Warm Rose */
  --color-rose: #c4626a;
  --color-rose-light: #d4828a;
  --color-rose-dark: #a4424a;
  --color-rose-glow: rgba(196, 98, 106, 0.15);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px var(--color-rose-glow);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-cloud);
  background-color: var(--color-void);
  min-height: 100vh;
  min-height: 100dvh;
}

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

a {
  color: var(--color-rose);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-rose-light);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-snow);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

.text-muted { color: var(--color-mist); }
.text-accent { color: var(--color-rose); }
.text-center { text-align: center; }

/* ========================================
   Layout Components
   ======================================== */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) 0;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--color-rose);
  color: var(--color-snow);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--color-rose-light);
  transform: translateY(-2px);
  box-shadow: 0 0 60px var(--color-rose-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-charcoal);
  color: var(--color-cloud);
  border: 1px solid var(--color-smoke);
}

.btn-secondary:hover {
  background: var(--color-smoke);
  border-color: var(--color-ash);
}

.btn-ghost {
  background: transparent;
  color: var(--color-mist);
}

.btn-ghost:hover {
  color: var(--color-cloud);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
}

/* ========================================
   Form Elements
   ======================================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-mist);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-snow);
  background: var(--color-charcoal);
  border: 1px solid var(--color-smoke);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

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

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

/* ========================================
   Quiz Components
   ======================================== */

/* Progress Bar */
.quiz-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-charcoal);
  z-index: 100;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-rose-dark), var(--color-rose));
  transition: width var(--duration-slow) var(--ease-out);
}

/* Heart Progress Gauge */
.heart-gauge {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-xl);
}

.heart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.heart-outline {
  fill: none;
  stroke: var(--color-smoke);
  stroke-width: 1.5;
}

.heart-fill {
  fill: var(--color-rose);
  transform-origin: center center;
  transform-box: fill-box;
  transition: transform 0.6s var(--ease-spring);
  filter: drop-shadow(0 0 8px var(--color-rose-glow));
}

/* Pulse animation when heart is filling */
.heart-gauge:hover .heart-fill {
  filter: drop-shadow(0 0 12px var(--color-rose));
}

/* Question Card */
.quiz-question {
  animation: questionFade 1.2s var(--ease-out) forwards;
}

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

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-question-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  font-weight: 400;
  color: var(--color-snow);
  line-height: 1.4;
  margin-bottom: var(--space-2xl);
}

/* Likert Scale */
.likert-scale {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.likert-option {
  position: relative;
}

.likert-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.likert-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-charcoal);
  border: 1px solid var(--color-smoke);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.likert-label:hover {
  background: var(--color-smoke);
  border-color: var(--color-ash);
}

.likert-input:checked + .likert-label {
  background: var(--color-rose-glow);
  border-color: var(--color-rose);
}

.likert-input:focus-visible + .likert-label {
  box-shadow: 0 0 0 3px var(--color-rose-glow);
}

.likert-marker {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-ash);
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.likert-input:checked + .likert-label .likert-marker {
  border-color: var(--color-rose);
  background: var(--color-rose);
  box-shadow: inset 0 0 0 3px var(--color-night);
}

.likert-text {
  font-size: 0.9375rem;
  color: var(--color-cloud);
}

/* Alternative: Horizontal dots for desktop */
@media (min-width: 480px) {
  .likert-scale--horizontal {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .likert-scale--horizontal .likert-option {
    flex: 1;
    max-width: 80px;
  }

  .likert-scale--horizontal .likert-label {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .likert-scale--horizontal .likert-marker {
    width: 32px;
    height: 32px;
  }

  .likert-scale--horizontal .likert-text {
    font-size: 0.75rem;
    color: var(--color-mist);
  }
}

/* Quiz Navigation */
.quiz-nav {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.quiz-nav .btn {
  flex: 1;
}

/* Previous button */
.quiz-prev-btn {
  margin-top: var(--space-xl);
}

.quiz-question form:has(.quiz-prev-btn) {
  margin-bottom: 0;
}

/* Style the button_to form wrapper for prev button */
.quiz-question > form:last-of-type {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* ========================================
   Results Components
   ======================================== */

/* Teaser Lock Overlay */
.results-locked {
  position: relative;
}

.results-blur {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-void) 30%,
    var(--color-void)
  );
  padding: var(--space-2xl);
  text-align: center;
}

.lock-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
  color: var(--color-rose);
}

/* Teaser Blur Container */
.teaser-blur-container {
  position: relative;
  margin-bottom: var(--space-lg);
}

.teaser-blur-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}

.teaser-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 11, 0.3),
    rgba(10, 10, 11, 0.7) 50%,
    rgba(10, 10, 11, 0.3)
  );
  border-radius: var(--radius-md);
}

.teaser-blur-overlay p {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-snow);
  margin-bottom: var(--space-xs);
}

.teaser-blur-overlay .text-muted {
  font-size: 0.875rem;
}

/* Deep Dive Teaser */
.deep-dive-teaser {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-charcoal);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-rose);
  margin-bottom: var(--space-2xl);
}

.deep-dive-icon {
  flex-shrink: 0;
  color: var(--color-rose);
  opacity: 0.8;
}

.deep-dive-teaser p {
  font-size: 0.9375rem;
  color: var(--color-mist);
  line-height: 1.5;
  margin: 0;
}

/* Score Bars */
.score-section {
  margin-bottom: var(--space-2xl);
}

.score-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-ash);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.score-item {
  margin-bottom: var(--space-lg);
}

.score-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}

.score-label {
  font-size: 0.875rem;
  color: var(--color-cloud);
}

.score-label--hidden {
  color: var(--color-ash);
  font-style: italic;
}

.score-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-mist);
}

.score-bar {
  height: 8px;
  background: var(--color-charcoal);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-rose-dark), var(--color-rose));
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-out);
}

/* Alignment badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.badge-dominant {
  background: rgba(196, 98, 106, 0.2);
  color: var(--color-rose-light);
}

.badge-submissive {
  background: rgba(130, 100, 180, 0.2);
  color: #a890d0;
}

.badge-switch {
  background: rgba(100, 160, 140, 0.2);
  color: #80c0a8;
}

.badge-neutral {
  background: rgba(138, 138, 153, 0.2);
  color: var(--color-mist);
}

/* ========================================
   Signup Wall
   ======================================== */
.signup-wall {
  text-align: center;
}

.signup-wall h2 {
  margin-bottom: var(--space-md);
}

.signup-wall p {
  color: var(--color-mist);
  margin-bottom: var(--space-2xl);
}

.signup-form {
  margin-bottom: var(--space-xl);
}

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--color-ash);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

/* ========================================
   Unlock Section
   ======================================== */
.unlock-section {
  padding: var(--space-2xl);
  background: var(--color-charcoal);
  border-radius: var(--radius-lg);
  text-align: center;
}

.unlock-section h3 {
  margin-bottom: var(--space-md);
}

.unlock-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.referral-code {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-night);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.referral-code input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-snow);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.referral-code input:focus {
  outline: none;
}

.referral-progress {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-mist);
}

.referral-progress strong {
  color: var(--color-rose);
}

/* Button form wrapper (for button_to helpers) */
.unlock-section form,
.tip-section form {
  display: block;
  width: 100%;
}

.unlock-section form button,
.tip-section form button {
  width: 100%;
}

.tip-section {
  text-align: center;
}

/* ========================================
   Clarity Meter
   ======================================== */
.clarity-section {
  padding: var(--space-lg);
  background: var(--color-charcoal);
  border-radius: var(--radius-lg);
}

.clarity-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}

.clarity-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-ash);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.clarity-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-snow);
}

.clarity-bar {
  height: 8px;
  background: var(--color-smoke);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.clarity-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease-out);
}

.clarity-bar-fill.clarity-low {
  background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.clarity-bar-fill.clarity-medium {
  background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.clarity-bar-fill.clarity-high {
  background: linear-gradient(90deg, var(--color-rose-dark), var(--color-rose));
}

.clarity-message {
  font-size: 0.875rem;
  color: var(--color-mist);
  margin: 0;
}

.refine-progress {
  text-align: center;
}

.refine-intro,
.refine-complete {
  padding: var(--space-lg) 0;
}

/* ========================================
   Archetype Report
   ======================================== */
.archetype-report {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-night) 100%);
  border: 1px solid var(--color-smoke);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.archetype-report::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-rose-dark), var(--color-rose), var(--color-rose-light));
}

.archetype-report-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.archetype-report-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-snow);
  margin: 0;
}

.archetype-essence {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-rose-light);
  line-height: 1.5;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-smoke);
}

.archetype-section {
  margin-bottom: var(--space-xl);
}

.archetype-section:last-of-type {
  margin-bottom: var(--space-lg);
}

.archetype-section-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-ash);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.archetype-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archetype-list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-cloud);
  line-height: 1.5;
}

.archetype-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-smoke);
}

.archetype-list--pleasure li::before {
  background: var(--color-rose);
}

.archetype-list--pain li::before {
  background: #a890d0;
}

.archetype-list--growth li::before {
  background: #80c0a8;
}

.archetype-matches {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-smoke);
}

.archetype-match-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.archetype-match-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-ash);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.archetype-match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.archetype-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-smoke);
  color: var(--color-cloud);
}

.archetype-tag--best {
  background: rgba(196, 98, 106, 0.15);
  color: var(--color-rose-light);
  border: 1px solid rgba(196, 98, 106, 0.3);
}

.archetype-tag--hard {
  background: rgba(130, 100, 180, 0.15);
  color: #a890d0;
  border: 1px solid rgba(130, 100, 180, 0.3);
}

/* ========================================
   Landing / Start
   ======================================== */
.landing-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg) 0;
}

.landing-header .container {
  display: flex;
  justify-content: flex-end;
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
}

.hero {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.hero-title {
  margin-bottom: var(--space-md);
}

.hero-title em {
  font-style: italic;
  color: var(--color-rose);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-mist);
  margin-bottom: var(--space-2xl);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  font-size: 0.875rem;
  color: var(--color-ash);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ========================================
   Animations
   ======================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

.animate-pulse {
  animation: pulse 2s var(--ease-out) infinite;
}

.animate-slide-in {
  animation: slideIn var(--duration-slow) var(--ease-out) forwards;
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 50ms; }
.stagger-children > *:nth-child(3) { animation-delay: 100ms; }
.stagger-children > *:nth-child(4) { animation-delay: 150ms; }
.stagger-children > *:nth-child(5) { animation-delay: 200ms; }
.stagger-children > *:nth-child(6) { animation-delay: 250ms; }

/* ========================================
   Utilities
   ======================================== */
.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;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ========================================
   Flash Messages
   ======================================== */
.flash {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
}

.flash-notice {
  background: rgba(100, 160, 140, 0.15);
  color: #80c0a8;
  border: 1px solid rgba(100, 160, 140, 0.3);
}

.flash-alert {
  background: rgba(196, 98, 106, 0.15);
  color: var(--color-rose-light);
  border: 1px solid rgba(196, 98, 106, 0.3);
}

/* ========================================
   Auth Pages
   ======================================== */
.auth-card {
  text-align: center;
}

.auth-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  margin-bottom: var(--space-sm);
}

.auth-subtitle {
  color: var(--color-mist);
  margin-bottom: var(--space-2xl);
}

.auth-form {
  text-align: left;
}

.auth-links {
  margin-top: var(--space-xl);
  font-size: 0.875rem;
  color: var(--color-mist);
}

.auth-links p {
  margin-bottom: var(--space-sm);
}

.auth-links a {
  color: var(--color-rose);
}

/* Google Button */
.btn-google {
  background: var(--color-snow);
  color: var(--color-void);
  font-weight: 500;
}

.btn-google:hover {
  background: var(--color-cloud);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-google:active {
  transform: translateY(0);
}

.google-icon {
  flex-shrink: 0;
}

/* Form Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-rose);
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--color-mist);
  cursor: pointer;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--color-ash);
  margin-left: var(--space-sm);
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 640px) {
  .container {
    max-width: 560px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 640px;
  }
}
