/* =============================================================================
   FILE: assets/css/login.css
   PROJECT: Smart Bookmark
   PURPOSE: Styles specific to the Login page (login.html).
            This file depends on base.css being loaded first for the
            CSS custom properties (design tokens) to be available.

   SECTIONS:
     1.  Page Layout  –  Split-screen grid
     2.  Left Panel   –  Dark branding side (hero, features)
     3.  Right Panel  –  Light form side
     4.  Login Card   –  The white card container
     5.  Card Header  –  Eyebrow, title, subtitle
     6.  Form         –  Field groups, labels, input wrappers
     7.  Input States –  Focus, error, autofill overrides
     8.  Password Toggle
     9.  Remember Me  –  Checkbox row
     10. Alert Banner –  Global error feedback
     11. Submit Button
     12. Card Footer  –  Sign-up link
     13. Animations
     14. Responsive   –  Mobile breakpoints

   DEPENDS ON: assets/css/base.css
   USED BY:    login.html
============================================================================= */


/* =============================================================================
   1. PAGE LAYOUT – SPLIT SCREEN
   The page is split 50/50: brand panel on the left, login form on the right.
   On tablet/mobile the left panel is hidden (see Responsive section).
============================================================================= */
.page {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Equal halves */
  height: 100vh;
  min-height: 0; /* Prevent the grid from growing past the viewport */
  overflow: hidden;
}


/* =============================================================================
   2. LEFT PANEL – BRANDING SIDE
   Dark gradient background with decorative blobs and a dot-grid overlay.
   Marked aria-hidden="true" in HTML because it is purely decorative.
============================================================================= */
.panel-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 64px;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #312e81 100%);
  overflow: hidden; /* Clips the decorative blobs */
}

/* ── Decorative radial glow blobs (pure CSS, no images) ───────────────────
   ::before = top-left indigo blob, ::after = bottom-right amber blob
   These add depth/warmth to the dark background without extra DOM elements. */
.panel-left::before,
.panel-left::after {
  content: '';
  position: absolute;
  border-radius: 50%;   /* Make them circular */
  filter: blur(80px);   /* Gaussian blur creates the soft glow effect */
  opacity: 0.35;
  pointer-events: none; /* Never intercept mouse events */
}

.panel-left::before {
  /* Indigo blob – top-left corner */
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  top: -140px;
  left: -120px;
}

.panel-left::after {
  /* Amber blob – bottom-right corner (warm accent) */
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  bottom: -100px;
  right: -80px;
}

/* ── Dot grid overlay ─────────────────────────────────────────────────────
   Provides subtle grid texture using a repeating radial-gradient.
   This is an absolutely-positioned div (not a pseudo-element) so it
   stacks cleanly above the blobs but below the content. */
.dot-grid {
  position: absolute;
  inset: 0; /* Shorthand for top/right/bottom/left: 0 */
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── Left panel content wrapper ───────────────────────────────────────────
   z-index: 1 lifts content above the blobs and dot grid. */
.panel-left-content {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

/* ── Brand logo row ──────────────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;  /* Reduced — gif-showcase now fills the gap below */
}

.brand-icon {
  /* Square amber icon container for the SVG bookmark mark */
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--clr-accent-400), var(--clr-accent-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5); /* Amber glow */
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* The second word "Bookmark" gets the amber accent colour */
.brand-name span {
  color: var(--clr-accent-400);
}

/* ── Hero heading ────────────────────────────────────────────────────────── */
.hero-heading {
  /* clamp() ensures readable sizes: min 2rem on small screens, max 2.75rem */
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em; /* Tight tracking for large display headings */
}

/* The <em> tag gets a gradient text fill using background-clip technique */
.hero-heading em {
  font-style: normal; /* Override italic – using em for semantic emphasis only */
  background: linear-gradient(90deg, var(--clr-accent-300), var(--clr-accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero sub-copy ───────────────────────────────────────────────────────── */
.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 48px;
  max-width: 360px;
}

/* ── Feature list ────────────────────────────────────────────────────────── */
.features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Small frosted-glass icon square next to each feature label */
.feature-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Never squash on narrow containers */
}

.feature-dot svg {
  width: 16px;
  height: 16px;
  color: var(--clr-accent-400);
}

.feature-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}


/* =============================================================================
   2b. LEFT PANEL – GIF SHOWCASE
   Centred between the hero copy and the feature list.
   The image retains its native aspect ratio; width is clamped so it never
   overwhelms the text content above and below it.
   GIFs loop infinitely by nature of the format — no JS required.
============================================================================= */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.gif-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 28px;     /* Flush to brand above, breathing room before hero heading */
}

/* ── The GIF image ────────────────────────────────────────────────────────── */
.gif-hero {
  position: relative;
  z-index: 1;                /* Above the glow ring */
  display: block;
  width: clamp(100px, 38%, 160px);  /* Responsive: min 100 px, ideal 38%, max 160 px */
  height: auto;              /* Preserve native aspect ratio */
  border-radius: var(--radius-lg);
  /* Frosted border — stands out on the dark background */
  outline: 2px solid rgba(255, 255, 255, 0.12);
  outline-offset: 3px;
  /* Soft drop shadow to lift it off the panel */
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.45));
  /* Smooth entrance (picks up stagger-in from animations.css if present) */
  animation: stagger-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

/* ── Glow ring behind the image ───────────────────────────────────────────── */
.gif-glow {
  position: absolute;
  inset: -18px;              /* Slightly larger than the image */
  border-radius: calc(var(--radius-lg) + 14px);
  background: radial-gradient(ellipse at center,
    rgba(99, 102, 241, 0.22) 0%,
    rgba(251, 191, 36, 0.10) 55%,
    transparent 75%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}


/* =============================================================================
   3. RIGHT PANEL – FORM SIDE
   Light background that contains and centres the login card.
   overflow-y: auto allows scroll on very small heights (e.g. landscape mobile).
============================================================================= */
.panel-right {
  position: relative;     /* stacking context for ::before orb */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Gradient mesh — soft indigo/violet blobs layered over the white panel.
     Same ambient warmth as about.html; no DOM element, no JS, zero cost. */
  background:
    radial-gradient(ellipse 80% 55% at 18% 12%, rgba(99,102,241,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 65% 50% at 82% 10%, rgba(168,85,247,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 78% 85%, rgba(99,102,241,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 12% 88%, rgba(139,92,246,0.04) 0%, transparent 50%),
    var(--clr-brand-50);
  padding: 40px 32px;
  overflow-y: auto;
}

/* Breathing ambient orb behind the card.
   Only transform + opacity animate — both GPU-composited, zero layout cost.
   6 s period feels calm and barely noticed. */
.panel-right::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(ellipse at center,
    rgba(99,102,241,0.10) 0%,
    rgba(139,92,246,0.05) 42%,
    transparent 70%
  );
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: panel-breathe 6s ease-in-out infinite;
}

@keyframes panel-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);     opacity: 1;   }
  50%       { transform: translate(-50%, -50%) scale(1.12);  opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .panel-right::before { animation: none; }
}


/* =============================================================================
   4. LOGIN CARD
   The white container that holds the entire login form.
   Slides in on page load via the slideUp keyframe animation (see Section 13).
============================================================================= */
.card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 44px 40px 40px;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;           /* sits above ::before orb */
  z-index: 1;
  will-change: transform, opacity; /* GPU layer ready before slideUp fires */
}


/* =============================================================================
   5. CARD HEADER
   Contains the eyebrow label, page title, and subtitle sentence.
============================================================================= */
.card-header {
  margin-bottom: 32px;
}

/* Small uppercase label above the main title */
.card-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-indigo-500);
  margin-bottom: 6px;
  /* Start hidden — login-gsap.js (initCardHeaderEntrance) animates these in
     after the card-enter animation completes. This prevents a flash of
     fully-visible text before GSAP fires. The 850 ms fallback in
     initCardHeaderEntrance ensures they always become visible even if
     the GSAP CDN is slow. */
  opacity: 0;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--clr-brand-900);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  opacity: 0; /* Revealed by login-gsap.js initCardHeaderEntrance */
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--clr-brand-600);
  line-height: 1.55;
  opacity: 0; /* Revealed by login-gsap.js initCardHeaderEntrance */
}


/* =============================================================================
   6. FORM ELEMENTS
   Base layout for the form, field groups, labels, and input wrappers.
============================================================================= */

/* Stack form fields vertically with consistent gap */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Each .field contains a label, input wrapper, and optional error message */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-brand-700);
  display: flex;
  align-items: center;
  justify-content: space-between; /* Label left, "Forgot?" link right */
}

/* Inline link inside a label (e.g., "Forgot password?") */
.field-label a {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--clr-indigo-500);
  text-decoration: none;
  transition: color var(--transition);
}
.field-label a:hover {
  color: var(--clr-indigo-600);
  text-decoration: underline;
}

/* ── Input wrapper ────────────────────────────────────────────────────────
   Relative container that holds the text input, leading icon, and
   optional trailing action button (password toggle). */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Leading icon – decorative, positioned absolute inside .input-wrap */
.input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  pointer-events: none; /* Never blocks input clicks */
  color: var(--clr-brand-600);
  transition: color var(--transition); /* Changes to indigo on focus */
}

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

/* The actual <input> element inside the wrapper */
.input-wrap input {
  width: 100%;
  height: 48px;
  /* Left padding = icon area; right padding = toggle button area */
  padding: 0 44px 0 44px;
  border: 1.5px solid var(--clr-brand-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--clr-brand-900);
  background: var(--clr-brand-50);
  outline: none; /* Custom focus ring applied below */
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);

  /*
   * SECURITY NOTE:
   * -webkit-text-fill-color overrides the blue autofill text colour that
   * some browsers apply. Without this, autofilled text may appear with
   * an inconsistent text colour that breaks the design.
   */
  -webkit-text-fill-color: var(--clr-brand-900);
}

/* Placeholder text — noticeably lighter than filled text so users can
   instantly tell which fields are empty vs. filled.                     */
.input-wrap input::placeholder {
  color: var(--clr-brand-400, #94a3b8);
  opacity: 0.55;
}
/* Firefox respects opacity on ::placeholder natively; Webkit/Blink need
   the colour itself to carry the reduced weight (opacity alone is ignored
   on -webkit-input-placeholder in some Chromium builds).                */
.input-wrap input::-webkit-input-placeholder { color: var(--clr-brand-400, #94a3b8); opacity: 0.55; }
.input-wrap input::-moz-placeholder          { color: var(--clr-brand-400, #94a3b8); opacity: 0.55; }
.input-wrap input:-ms-input-placeholder      { color: var(--clr-brand-400, #94a3b8); opacity: 0.55; }

/* ── Autofill override ────────────────────────────────────────────────────
   Chrome/Safari inject a yellow background for autofilled fields.
   The large inset box-shadow trick overrides that background colour
   while preserving the field's visible appearance. */
.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px var(--clr-brand-50) inset !important;
  -webkit-text-fill-color: var(--clr-brand-900) !important;
  border-color: var(--clr-indigo-400) !important;
}


/* =============================================================================
   7. INPUT STATES – FOCUS & ERROR
============================================================================= */

/* Focus state: indigo border + subtle ring (accessible and visually clear) */
.input-wrap input:focus {
  border-color: var(--clr-indigo-500);
  background: #fff;
  box-shadow: var(--shadow-input), 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* When the input is focused, also change the leading icon colour to indigo */
.input-wrap:focus-within .input-icon {
  color: var(--clr-indigo-500);
}

/* Error state: applied via JS → input-wrap.error when validation fails */
.input-wrap.error input {
  border-color: var(--clr-error);
  background: var(--clr-error-bg);
}

/* ── Inline field error message ─────────────────────────────────────────
   Hidden by default (max-height: 0, opacity: 0).
   JS adds .visible to animate it open when a validation message fires.
   Using max-height animation instead of display:none avoids a reflow. */
.field-error {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--clr-error);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

.field-error.visible {
  max-height: 40px;
  opacity: 1;
}

.field-error svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}


/* =============================================================================
   8. PASSWORD TOGGLE BUTTON
   The eye icon button positioned in the right side of the password input.
   Toggles between "eye" (show) and "eye-off" (hide) SVG icons.
============================================================================= */
.btn-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: var(--clr-brand-600);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.btn-toggle:hover {
  color: var(--clr-indigo-500);
  background: rgba(99, 102, 241, 0.07);
}

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

/* Default state: show eye-on, hide eye-off */
.btn-toggle .eye-off {
  display: none;
}

/* When .show class is toggled by JS (password visible): swap icons */
.btn-toggle.show .eye-on  { display: none; }
.btn-toggle.show .eye-off { display: block; }


/* =============================================================================
   9. REMEMBER ME – CHECKBOX ROW
============================================================================= */
.row-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -4px; /* Visual tightening after the password field */
}

.cb-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none; /* Prevent text selection on rapid clicks */
}

.cb-wrap input[type="checkbox"] {
  width: 17px;
  height: 17px;
  /* accent-color applies the brand colour to the native checkbox */
  accent-color: var(--clr-indigo-500);
  cursor: pointer;
}

.cb-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--clr-brand-600);
}


/* =============================================================================
   10. GLOBAL ALERT BANNER
   Appears above the form when a server-side / auth error is returned.
   Animated in with fadeIn (see Section 13).
   Shown/hidden via JS by toggling the .error class.
============================================================================= */
.alert {
  display: none; /* Hidden by default; JS sets display: flex via .error class */
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 4px;
  animation: fadeIn 0.2s ease;
}

.alert.error {
  display: flex;
  background: var(--clr-error-bg);
  border: 1px solid var(--clr-error-border);
  color: #b91c1c;
}

.alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px; /* Optical alignment with first line of text */
}


/* =============================================================================
   11. SUBMIT BUTTON
   Primary CTA button. States: default, hover, active, disabled, loading.
   Loading state swaps the label text for a CSS spinner.
============================================================================= */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--clr-indigo-500) 0%, var(--clr-indigo-600) 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden; /* Clips the ::after shimmer overlay */
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
  outline: none;
  margin-top: 4px;
}

/* Shimmer overlay that fades in on hover for a polished 3D feel */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

/* Hover: lift up + deeper shadow */
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.50);
}
.btn-primary:hover:not(:disabled)::after {
  opacity: 1;
}

/* Active: reset lift */
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-btn);
}

/* Focus ring (keyboard navigation) – uses outline, not box-shadow */
.btn-primary:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
}

/* Disabled: muted appearance, blocked cursor */
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Loading state ────────────────────────────────────────────────────────
   JS adds .loading to show spinner, hide label text and arrow icon.
   This communicates async work to the user without a full page reload. */
.btn-primary.loading .btn-label { display: none; }
.btn-primary.loading .spinner   { display: block; }
.btn-primary.loading svg.arrow  { display: none; }

/* Arrow icon inside the button (hidden during loading) */
.btn-primary svg.arrow {
  width: 16px;
  height: 16px;
}

/* CSS Loading Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35); /* Faint track */
  border-top-color: #fff;                        /* White moving segment */
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none; /* Shown only when .loading is applied */
}


/* =============================================================================
   12. CARD FOOTER – SIGN-UP LINK
============================================================================= */
.card-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--clr-brand-600);
}

.card-footer a {
  font-weight: 600;
  color: var(--clr-indigo-500);
  text-decoration: none;
  transition: color var(--transition);
}

.card-footer a:hover {
  color: var(--clr-indigo-600);
  text-decoration: underline;
}


/* =============================================================================
   13. KEYFRAME ANIMATIONS
============================================================================= */

/* Card entrance: slides up and fades in on page load */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alert banner: drops down and fades in when an error is shown */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Infinite spinner rotation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* =============================================================================
   13b. BUILDER CREDIT
   ─────────────────────────────────────────────────────────────────────────────
   Two placements:
     .builder-credit      → bottom of the left (dark) panel – desktop only
     .card-builder-credit → bottom of the login card – always visible
============================================================================= */

/* ── Left panel version (dark background, subtle white text) ─────────────── */
.builder-credit {
  position: absolute;
  bottom: 28px;
  left: 64px;                        /* Matches panel-left padding */
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.03em;
  z-index: 1;                        /* Above dot-grid overlay */
}

.builder-credit a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  transition: color var(--transition), border-color var(--transition);
}

.builder-credit a:hover {
  color: var(--clr-accent-400);      /* Amber on hover matches brand accent */
  border-color: var(--clr-accent-400);
}

/* ── Card version (light background, sits below the sign-up link) ─────────── */
.card-builder-credit {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--clr-brand-100); /* Hairline divider */
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--clr-brand-600);
  letter-spacing: 0.02em;
}

.card-builder-credit a {
  font-weight: 700;
  color: var(--clr-indigo-500);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.card-builder-credit a:hover {
  color: var(--clr-indigo-600);
  text-decoration: underline;
}


/* =============================================================================
   14. RESPONSIVE BREAKPOINTS
   ─────────────────────────────────────────────────────────────────────────────
   ≤ 900px  → Tablet / small laptop: hide the left panel, full-width form
   ≤ 480px  → Phone: tighten card padding and reduce heading size
============================================================================= */

/* ── Tablet / small laptop ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Allow page to scroll (it was height:100vh for the split layout) */
  body {
    overflow: auto;
  }

  /* Collapse to single column; form takes full viewport width */
  .page {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  /* Hide the decorative left panel on narrow viewports */
  .panel-left {
    display: none;
  }

  /* Right panel takes full height with a dark gradient so the card
     still feels "branded" even without the left panel visible */
  .panel-right {
    min-height: 100vh;
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 100%);
    padding: 40px 20px;
  }

  /* Stronger shadow for contrast on the dark background */
  .card {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  }
}

/* ── Mobile phone ───────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .card {
    padding: 32px 24px 28px;
    border-radius: var(--radius-lg); /* Slightly less rounded on small screens */
  }

  .card-title {
    font-size: 1.5rem;
  }
}
