/* =========================================================
   Workbobo — Login & Auth Design System
   Brand tokens derived directly from Workbobo Landing Page
   ========================================================= */

:root {
  --bg: #f5f4f1;
  --bg-2: #eeece7;
  --bg-card: #ffffff;
  --ink: #111111;
  --ink-2: #4a4a48;
  --muted: #8a8984;
  --line: rgba(17, 17, 17, 0.09);
  --line-strong: rgba(17, 17, 17, 0.16);
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-dark: rgba(17, 17, 17, 0.04);
  
  /* Brand Pastel Accents */
  --green: #b8e986;
  --green-dark: #2f6916;
  --violet: #c9b6ff;
  --violet-dark: #583bb8;
  --orange: #ffb885;
  --orange-dark: #9e4b10;
  --blue: #9fd3ff;
  --blue-dark: #1f649e;

  /* Geometry & Physics */
  --radius-lg: 28px;
  --radius: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px -12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.22);
  --shadow-glow-violet: 0 20px 50px -15px rgba(201, 182, 255, 0.5);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html, body {
  min-height: 100vh;
  width: 100%;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Subtle editorial film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   Auth Layout (Centered Distraction-Free Layout)
   ========================================================= */
/* =========================================================
   Auth Layout (Centered Distraction-Free Layout)
   ========================================================= */
/* =========================================================
   Auth Layout (Centered Distraction-Free Layout)
   ========================================================= */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 1rem;
  background:
    radial-gradient(60% 60% at 50% 20%, rgba(201, 182, 255, 0.22), transparent 70%),
    radial-gradient(50% 50% at 15% 80%, rgba(184, 233, 134, 0.16), transparent 70%),
    radial-gradient(40% 40% at 85% 75%, rgba(255, 184, 133, 0.14), transparent 70%),
    var(--bg);
}

/* Rotating badge accent */
.page-badge-rotate {
  position: absolute;
  top: 1.5rem;
  right: clamp(1.2rem, 4vw, 3rem);
  width: 85px;
  height: 85px;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

.page-badge-rotate svg {
  position: absolute;
  inset: 0;
  animation: spin 20s linear infinite;
}

.page-badge-rotate text {
  font: 500 8.2px var(--sans);
  letter-spacing: 0.22em;
  fill: var(--ink);
}

.page-badge-rotate .star {
  font-size: 1.2rem;
  color: var(--ink);
}

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

/* =========================================================
   Centered Form Pane
   ========================================================= */
.auth-pane-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
  margin: auto;
}

/* Header */
.auth-nav {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 10;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: opacity 0.25s;
}

.logo:hover {
  opacity: 0.85;
}

.logo sup {
  font-size: 0.6em;
  font-weight: 400;
  position: relative;
  top: -0.35em;
}

.logo-img {
  width: 32px;
  height: 32px;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease);
}

.back-link:hover {
  color: var(--ink);
  background: rgba(17, 17, 17, 0.05);
}

.btn-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
}

.btn-switch-pill:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-switch-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.auth-switch-link:hover {
  opacity: 0.75;
}

/* Sideways Slide Transitions for Progressive Signup */
.steps-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  transition: height 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.steps-track {
  display: flex;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.steps-track.show-step-2 {
  transform: translateX(-100%);
}

.step-slide {
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 1px 2px;
  transition: opacity 0.3s ease;
}

/* Slide states */
.steps-track:not(.show-step-2) .step-slide#step-1 {
  opacity: 1;
  pointer-events: auto;
}

.steps-track:not(.show-step-2) .step-slide#step-2 {
  opacity: 0;
  pointer-events: none;
}

.steps-track.show-step-2 .step-slide#step-1 {
  opacity: 0;
  pointer-events: none;
}

.steps-track.show-step-2 .step-slide#step-2 {
  opacity: 1;
  pointer-events: auto;
}

/* Input focus glow pulse */
.form-input.focus-pulse {
  box-shadow: 0 0 0 4px rgba(201, 182, 255, 0.48), 0 2px 10px rgba(88, 59, 184, 0.12) !important;
  border-color: var(--violet-dark) !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 0.65rem;
  padding: 0;
  transition: color 0.2s;
}

.step-back-btn:hover {
  color: var(--ink);
}

/* Form Container Card */
.auth-form-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.8rem 2.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow-sm);
}

.eyebrow .sparkle {
  color: var(--violet-dark);
}

.auth-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.5vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

/* Auth Mode Toggle Tabs (Sign In / Sign Up) */
.auth-tabs {
  display: flex;
  background: var(--bg-2);
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  margin-bottom: 1.8rem;
}

.auth-tab {
  flex: 1;
  padding: 0.55rem 0;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.auth-tab.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* Social Login Button */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
  position: relative;
}

.btn-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.1);
  border-color: rgba(17, 17, 17, 0.25);
}

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

.gmail-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(201, 182, 255, 0.35);
  color: var(--violet-dark);
  margin-left: 0.3rem;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

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

/* Form Fields */
.form-group {
  margin-bottom: 0.85rem;
}

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

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.forgot-link {
  font-size: 0.78rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--ink);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.95rem;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s;
}

.form-input {
  width: 100%;
  padding: 0.74rem 1rem 0.74rem 2.55rem;
  font-size: 0.91rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.25s var(--ease);
}

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

.form-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.07);
}

.form-input:focus + .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--ink);
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.35rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  transition: color 0.2s;
}

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

/* Helper Checkbox row */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.75rem 0 1.15rem;
  font-size: 0.82rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--ink-2);
  user-select: none;
}

.checkbox-custom {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--ink);
  border-color: var(--ink);
}

.checkbox-custom svg {
  width: 11px;
  height: 11px;
  stroke: var(--white);
  stroke-width: 3;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.15s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom svg {
  opacity: 1;
  transform: scale(1);
}

/* Primary Button */
.btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.84rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.93rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--white);
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
  transition: all 0.3s var(--ease);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -8px rgba(0, 0, 0, 0.55);
  background: #000000;
}

.btn-submit .arrow {
  transition: transform 0.3s var(--ease);
}

.btn-submit:hover .arrow {
  transform: translateX(4px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Demo quick-fill pill */
.demo-pill-wrap {
  margin-top: 0.85rem;
  text-align: center;
}

.demo-fill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: rgba(201, 182, 255, 0.22);
  border: 1px dashed rgba(88, 59, 184, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--violet-dark);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.demo-fill-btn:hover {
  background: rgba(201, 182, 255, 0.4);
  border-color: var(--violet-dark);
  transform: translateY(-1px);
}

/* Footer note */
.auth-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.auth-footer-links {
  display: flex;
  gap: 1.2rem;
}

.auth-footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.auth-security {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-security svg {
  width: 14px;
  height: 14px;
  color: var(--green-dark);
}

/* =========================================================
   Right Pane: Feature & Live Showcase Column
   ========================================================= */
.auth-pane-showcase {
  background:
    radial-gradient(70% 60% at 80% 20%, rgba(201, 182, 255, 0.28), transparent 70%),
    radial-gradient(60% 60% at 20% 80%, rgba(184, 233, 134, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(238, 236, 231, 0.5)),
    var(--bg-2);
  border-left: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Rotating badge in corner */
.showcase-badge-rotate {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  z-index: 10;
}

.showcase-badge-rotate svg {
  position: absolute;
  inset: 0;
  animation: spin 20s linear infinite;
}

.showcase-badge-rotate text {
  font: 500 8.5px var(--sans);
  letter-spacing: 0.22em;
  fill: var(--ink);
}

.showcase-badge-rotate .star {
  font-size: 1.3rem;
  color: var(--ink);
}

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

/* Showcase Header */
.showcase-header {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.showcase-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(184, 233, 134, 0.4);
  animation: pulse-dot 2.2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.showcase-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* Live Simulation Card Stack */
.showcase-cards {
  position: relative;
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 2;
}

/* Glass Main Mail Preview Card */
.mail-mock-card {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.mail-mock-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mail-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.mail-mock-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mail-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ea4335;
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 3px 8px rgba(234, 67, 53, 0.35);
}

.mail-user-info b {
  display: block;
  font-size: 0.82rem;
  color: var(--ink);
}

.mail-user-info small {
  font-size: 0.72rem;
  color: var(--muted);
}

.mail-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(184, 233, 134, 0.4);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 600;
}

.mail-mock-body {
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.mail-mock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 500;
}

.meta-chip.chip-green { border-color: rgba(184, 233, 134, 0.7); background: rgba(184, 233, 134, 0.18); }
.meta-chip.chip-violet { border-color: rgba(201, 182, 255, 0.7); background: rgba(201, 182, 255, 0.2); }
.meta-chip.chip-blue { border-color: rgba(159, 211, 255, 0.7); background: rgba(159, 211, 255, 0.2); }

/* Floating Micro Cards */
.mini-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.glass-chip-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  border: 1px solid var(--white);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.glass-chip-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.chip-icon.icon-violet { background: var(--violet); color: var(--violet-dark); }
.chip-icon.icon-green { background: var(--green); color: var(--green-dark); }
.chip-icon.icon-orange { background: var(--orange); color: var(--orange-dark); }
.chip-icon.icon-blue { background: var(--blue); color: var(--blue-dark); }

.chip-text b {
  display: block;
  font-size: 0.8rem;
  color: var(--ink);
}

.chip-text small {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Showcase Bottom Testimonial */
.showcase-footer {
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.quote-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.quote-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6dfd5;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ink);
}

.author-details b {
  display: block;
  font-size: 0.78rem;
  color: var(--ink);
}

.author-details small {
  font-size: 0.7rem;
  color: var(--muted);
}

.rating-stars {
  color: #ffaa00;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

/* =========================================================
   Modal: Forgot Password
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 1.5rem;
}

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

.modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: all 0.35s var(--ease);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--ink);
  color: var(--white);
}

.modal-title {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  margin: 0.4rem 0 0.6rem;
  color: var(--ink);
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 1.6rem;
}

/* =========================================================
   Toast Notification
   ========================================================= */
.toast-notice {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top, 14px));
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-24px) scale(0.96);
  background: rgba(18, 18, 20, 0.94);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 14px; /* Native Mobile App Squircle (Replaces 999px capsule) */
  font-size: 0.84rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 
    0 16px 36px -6px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  z-index: 2000;
  width: calc(100% - 24px);
  max-width: 420px;
  min-width: 280px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  cursor: pointer;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.toast-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px; /* App Icon Tile Shape */
  background: var(--green);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================= */

/* Tablets & Small Laptops */
@media (max-width: 1024px) {
  .auth-page {
    min-height: 100dvh;
    padding: 1.25rem 1.25rem 2rem;
    overflow-y: auto;
  }
  
  .auth-nav {
    padding: 0 clamp(1.25rem, 3.5vw, 2.5rem);
  }

  .auth-pane-showcase {
    display: none;
  }

  .auth-pane-form {
    min-height: auto;
    margin: auto;
    width: 100%;
    max-width: 440px;
  }

  .auth-form-wrap {
    margin: auto 0;
  }
}

/* Mobile Devices (Tablets/Phones <= 640px) */
@media (max-width: 640px) {
  .auth-page {
    min-height: 100dvh;
    padding: 0.75rem 0.85rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Hide decorative rotating badge on mobile to prevent clutter */
  .page-badge-rotate {
    display: none !important;
  }

  /* In-flow top bar on mobile so it sits cleanly at the top */
  .auth-nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    padding: 0.25rem 0.25rem 0.65rem;
    margin-bottom: 0;
    width: 100%;
    max-width: 440px;
    flex-shrink: 0;
  }

  .auth-pane-form {
    width: 100%;
    max-width: 440px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
    margin: 0 auto;
  }

  .logo {
    font-size: 1.2rem;
    gap: 0.45rem;
  }

  .logo-img {
    width: 26px;
    height: 26px;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .back-link {
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
    gap: 0.25rem;
  }

  .btn-switch-pill {
    font-size: 0.8rem;
    padding: 0.38rem 0.8rem;
  }

  /* Main Card Mobile Adaptations - centered vertically in remaining space */
  .auth-form-wrap {
    padding: 1.45rem 1.2rem;
    border-radius: 20px;
    margin: auto 0;
    width: 100%;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    /* Disable 3D tilt on mobile for smoother touch scrolling */
    transform: none !important;
  }

  .eyebrow {
    font-size: 0.72rem;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.45rem;
  }

  .auth-title {
    font-size: clamp(1.6rem, 6.4vw, 1.95rem);
    line-height: 1.1;
    margin-bottom: 0.35rem;
  }

  .auth-subtitle {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  /* Input fields - 16px to prevent iOS Safari auto-zoom */
  .form-input {
    font-size: 16px !important;
    padding: 0.72rem 0.85rem 0.72rem 2.45rem;
  }

  .input-icon {
    left: 0.85rem;
    width: 16px;
    height: 16px;
  }

  .form-group {
    margin-bottom: 0.75rem;
  }

  .form-label {
    font-size: 0.8rem;
  }

  .forgot-link {
    font-size: 0.76rem;
  }

  /* Action Buttons */
  .btn-submit {
    padding: 0.82rem 1.2rem;
    font-size: 0.92rem;
    min-height: 46px; /* Accessibility touch target */
  }

  .btn-google {
    padding: 0.72rem 0.95rem;
    font-size: 0.85rem;
    min-height: 44px;
    gap: 0.55rem;
  }

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

  .gmail-badge {
    font-size: 0.64rem;
    padding: 0.1rem 0.35rem;
  }

  .auth-divider {
    margin: 0.85rem 0;
    font-size: 0.7rem;
  }

  .form-options {
    margin: 0.65rem 0 0.95rem;
    font-size: 0.78rem;
  }

  .checkbox-custom {
    width: 16px;
    height: 16px;
  }

  .step-back-btn {
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
  }

  .auth-switch {
    font-size: 0.8rem;
    margin-top: 0.85rem;
  }

  /* Mobile Toast */
  .toast-notice {
    width: calc(100% - 24px);
    max-width: 420px;
    top: max(0.85rem, env(safe-area-inset-top, 14px));
    bottom: auto;
    padding: 0.75rem 1rem;
    font-size: 0.83rem;
  }

  /* Mobile Modal */
  .modal-overlay {
    padding: 1rem;
  }

  .modal-card {
    padding: 1.6rem 1.25rem;
    border-radius: 20px;
  }

  .modal-title {
    font-size: 1.6rem;
  }
}

/* Extra Small Mobile Devices (<= 375px e.g. iPhone SE) */
@media (max-width: 375px) {
  .auth-page {
    padding: 0.65rem 0.65rem 1.75rem;
  }

  .auth-form-wrap {
    padding: 1.25rem 0.95rem;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 1.55rem;
  }

  .btn-google {
    font-size: 0.8rem;
    padding: 0.68rem 0.75rem;
    gap: 0.45rem;
  }

  .gmail-badge {
    display: none; /* Hide badge on extremely narrow screens to avoid wrapping */
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-img {
    width: 24px;
    height: 24px;
  }

  .back-link {
    padding: 0.3rem 0.45rem;
    font-size: 0.74rem;
  }

  .btn-switch-pill {
    padding: 0.32rem 0.65rem;
    font-size: 0.75rem;
  }
}

/* Landscape / Short Viewports (<= 640px height) */
@media (max-height: 640px) {
  .auth-page {
    padding: 0.5rem 0.85rem 1.25rem;
    justify-content: flex-start;
  }

  .auth-nav {
    position: static;
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
    flex-shrink: 0;
  }

  .auth-pane-form {
    flex: initial;
    min-height: auto;
    margin: 0 auto;
  }

  .auth-form-wrap {
    margin: 0.35rem auto 1rem;
    padding: 1.15rem 1.2rem;
  }

  .auth-title {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }

  .auth-subtitle {
    margin-bottom: 0.7rem;
  }
}

/* Active touch feedback */
@media (hover: none) and (pointer: coarse) {
  .btn-submit:active,
  .btn-google:active,
  .btn-switch-pill:active,
  .back-link:active {
    transform: scale(0.97);
  }
}
