/**
 * TempoMail Modern Auth Experience
 * Floating Squircle Glass Cards, Ambient Mesh Lighting, Warm Amber Focus Rings, & Tactile Pill Physics
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --tempo-font: "Inter", system-ui, -system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tempo-mono: ui-monospace, Menlo, Monaco, Consolas, monospace;
  
  /* Canvas & Obsidian Dark Theme */
  --tempo-canvas: #07080b;
  --tempo-card-bg: rgba(18, 20, 28, 0.78);
  --tempo-card-border: rgba(255, 255, 255, 0.12);
  --tempo-card-bezel: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  
  /* Inputs */
  --tempo-input-bg: rgba(255, 255, 255, 0.04);
  --tempo-input-hover-bg: rgba(255, 255, 255, 0.06);
  --tempo-input-focus-bg: rgba(255, 255, 255, 0.08);
  --tempo-input-border: rgba(255, 255, 255, 0.10);
  --tempo-input-text: #f8fafc;
  --tempo-input-placeholder: #64748b;
  --tempo-label-text: #94a3b8;
  
  /* Warm Amber Accent */
  --tempo-accent: #ff7700;
  --tempo-accent-hover: #e66b00;
  --tempo-accent-active: #cc5e00;
  --tempo-accent-glow: rgba(255, 119, 0, 0.35);
  --tempo-accent-ring: rgba(255, 119, 0, 0.22);
  --tempo-accent-gradient: linear-gradient(180deg, #ff8800 0%, #ff6600 100%);
  
  /* Text Ink */
  --tempo-ink-primary: #f8fafc;
  --tempo-ink-secondary: #94a3b8;
  --tempo-ink-tertiary: #64748b;
  
  /* Radii */
  --tempo-radius-card: 28px;
  --tempo-radius-input: 14px;
  --tempo-radius-pill: 9999px;
  --tempo-radius-badge: 12px;
}

/* Light Theme Variables */
html.light, [data-theme="light"] {
  --tempo-canvas: #f5f5f7;
  --tempo-card-bg: rgba(255, 255, 255, 0.94);
  --tempo-card-border: rgba(0, 0, 0, 0.08);
  --tempo-card-bezel: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  
  --tempo-input-bg: #ffffff;
  --tempo-input-hover-bg: #f8fafc;
  --tempo-input-focus-bg: #ffffff;
  --tempo-input-border: #cbd5e1;
  --tempo-input-text: #0f172a;
  --tempo-input-placeholder: #94a3b8;
  --tempo-label-text: #475569;
  
  --tempo-ink-primary: #0f172a;
  --tempo-ink-secondary: #475569;
  --tempo-ink-tertiary: #94a3b8;
}

html.light .tempo-auth-stage, [data-theme="light"] .tempo-auth-stage {
  background-color: #f5f5f7 !important;
  background-image: 
    radial-gradient(900px circle at 50% 0%, rgba(255, 119, 0, 0.08), transparent 70%),
    radial-gradient(750px circle at 90% 90%, rgba(255, 153, 0, 0.05), transparent 60%),
    radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 24px 24px !important;
}

html.light .tempo-glass-card, [data-theme="light"] .tempo-glass-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 25px 70px -15px rgba(0, 0, 0, 0.08), 
    0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

html.light .tempo-auth-title, [data-theme="light"] .tempo-auth-title {
  color: #0f172a !important;
}

html.light .tempo-auth-subtitle, [data-theme="light"] .tempo-auth-subtitle {
  color: #475569 !important;
}

html.light .tempo-label, [data-theme="light"] .tempo-label {
  color: #334155 !important;
}

html.light .tempo-input, [data-theme="light"] .tempo-input {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

html.light .tempo-input:hover, [data-theme="light"] .tempo-input:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

html.light .tempo-input:focus, [data-theme="light"] .tempo-input:focus,
html.light .tempo-input-wrap:focus-within .tempo-input, [data-theme="light"] .tempo-input-wrap:focus-within .tempo-input {
  border-color: var(--tempo-accent) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 0 0 4px var(--tempo-accent-ring) !important;
}

html.light .tempo-auth-logo-badge, [data-theme="light"] .tempo-auth-logo-badge {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

html.light .tempo-social-pill, [data-theme="light"] .tempo-social-pill {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html.light .tempo-social-pill:hover, [data-theme="light"] .tempo-social-pill:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

html.light .tempo-demo-pill, [data-theme="light"] .tempo-demo-pill {
  background: rgba(255, 119, 0, 0.06) !important;
  border-color: rgba(255, 119, 0, 0.22) !important;
}

html.light .tempo-demo-pill-creds, [data-theme="light"] .tempo-demo-pill-creds {
  color: #334155 !important;
}

html.light .tempo-divider::before, html.light .tempo-divider::after,
[data-theme="light"] .tempo-divider::before, [data-theme="light"] .tempo-divider::after {
  background: rgba(0, 0, 0, 0.08) !important;
}

html.light .tempo-divider span, [data-theme="light"] .tempo-divider span {
  color: #64748b !important;
}

html.light .tempo-checkbox-input, [data-theme="light"] .tempo-checkbox-input {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}

html.light .tempo-checkbox-label, [data-theme="light"] .tempo-checkbox-label {
  color: #475569 !important;
}

html.light .tempo-forgot-link, [data-theme="light"] .tempo-forgot-link {
  color: #475569 !important;
}

html.light .tempo-forgot-link:hover, [data-theme="light"] .tempo-forgot-link:hover {
  color: var(--tempo-accent) !important;
}

html.light .tempo-auth-footer, [data-theme="light"] .tempo-auth-footer {
  color: #475569 !important;
}

html.light .tempo-auth-terms, [data-theme="light"] .tempo-auth-terms {
  color: #64748b !important;
}

html.light .tempo-auth-terms a, [data-theme="light"] .tempo-auth-terms a {
  color: #334155 !important;
}

/* Base Body & Layout */
body.tempo-auth-body {
  font-family: var(--tempo-font) !important;
  background-color: var(--tempo-canvas) !important;
  color: var(--tempo-ink-primary) !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Lighting Mesh */
.tempo-auth-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  width: 100%;
  background-color: var(--tempo-canvas);
  background-image: 
    radial-gradient(900px circle at 50% 0%, rgba(255, 119, 0, 0.14), transparent 70%),
    radial-gradient(750px circle at 90% 90%, rgba(255, 153, 0, 0.08), transparent 60%),
    radial-gradient(700px circle at 10% 80%, rgba(255, 102, 0, 0.06), transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 24px 24px;
  overflow: hidden;
}

/* Floating Ambient Aura Glow behind the Card */
.tempo-auth-glow-orb {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 119, 0, 0.16) 0%, rgba(255, 102, 0, 0.04) 50%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/* Container Width */
.tempo-auth-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  margin: auto;
}

.tempo-auth-wrapper.wide {
  max-width: 500px;
}

/* Floating Squircle Tempo Glass Card */
.tempo-glass-card {
  position: relative;
  background: var(--tempo-card-bg);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid var(--tempo-card-border);
  border-radius: var(--tempo-radius-card);
  box-shadow: 
    var(--tempo-card-bezel),
    0 24px 60px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 40px -10px rgba(255, 119, 0, 0.12);
  padding: 40px 36px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 576px) {
  .tempo-glass-card {
    padding: 32px 24px;
    border-radius: 24px;
  }
}

/* Brand Header & Squircle Icon Badge */
.tempo-auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.tempo-auth-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 18px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tempo-auth-logo-badge:hover {
  transform: scale(1.05);
}

.tempo-auth-logo-badge img {
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

.tempo-auth-logo-badge i {
  font-size: 24px;
  color: var(--tempo-accent);
}

.tempo-auth-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tempo-ink-primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.tempo-auth-subtitle {
  font-size: 14px;
  color: var(--tempo-ink-secondary);
  margin-bottom: 0;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Demo Credentials Quick-Fill Banner */
.tempo-demo-pill {
  background: rgba(255, 119, 0, 0.08);
  border: 1px solid rgba(255, 119, 0, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tempo-demo-pill-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tempo-demo-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tempo-accent);
}

.tempo-demo-pill-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tempo-accent);
  box-shadow: 0 0 8px var(--tempo-accent);
}

.tempo-demo-pill-creds {
  font-family: var(--tempo-mono);
  font-size: 12px;
  color: #cbd5e1;
}

.tempo-demo-pill-action {
  flex-shrink: 0;
  background: rgba(255, 119, 0, 0.18);
  border: 1px solid rgba(255, 119, 0, 0.35);
  border-radius: var(--tempo-radius-pill);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tempo-demo-pill-action:hover {
  background: var(--tempo-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Tempo Text Inputs & Floating / Clean Labels */
.tempo-field-group {
  margin-bottom: 20px;
  text-align: left;
}

.tempo-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--tempo-label-text);
  margin-bottom: 7px;
  transition: color 0.2s ease;
}

.tempo-input-wrap {
  position: relative;
  width: 100%;
}

.tempo-input {
  width: 100%;
  height: 48px;
  background: var(--tempo-input-bg) !important;
  border: 1px solid var(--tempo-input-border) !important;
  border-radius: var(--tempo-radius-input) !important;
  color: var(--tempo-input-text) !important;
  font-family: var(--tempo-font) !important;
  font-size: 15px !important;
  padding: 0 16px !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.tempo-input::placeholder {
  color: var(--tempo-input-placeholder) !important;
  opacity: 0.7;
}

.tempo-input:hover {
  background: var(--tempo-input-hover-bg) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Signature Warm Amber Focus Ring */
.tempo-input:focus,
.tempo-input-wrap:focus-within .tempo-input {
  background: var(--tempo-input-focus-bg) !important;
  border-color: var(--tempo-accent) !important;
  box-shadow: 
    0 0 0 4px var(--tempo-accent-ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.tempo-input.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

/* Inside Password Reveal Toggle Button */
.tempo-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  color: #86868b !important;
  font-size: 15px;
  padding: 6px;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.tempo-password-toggle:hover {
  color: #f5f5f7 !important;
}

.tempo-input-wrap.has-toggle .tempo-input {
  padding-right: 46px !important;
}

/* Form Helper Links & Checkboxes */
.tempo-form-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}

.tempo-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--tempo-ink-secondary);
  user-select: none;
}

.tempo-checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.tempo-checkbox-input:checked {
  background: var(--tempo-accent);
  border-color: var(--tempo-accent);
  box-shadow: 0 0 10px var(--tempo-accent-glow);
}

.tempo-checkbox-input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tempo-checkbox-input:focus {
  box-shadow: 0 0 0 3px var(--tempo-accent-ring);
}

.tempo-forgot-link {
  color: var(--tempo-ink-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.tempo-forgot-link:hover {
  color: var(--tempo-accent);
}

/* Tactile Pill Submit Buttons */
.tempo-btn-pill {
  width: 100%;
  height: 48px;
  border-radius: var(--tempo-radius-pill) !important;
  background: var(--tempo-accent-gradient) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-family: var(--tempo-font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 16px var(--tempo-accent-glow),
    0 2px 4px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none;
}

.tempo-btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 22px rgba(255, 119, 0, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
}

.tempo-btn-pill:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 2px 8px var(--tempo-accent-glow) !important;
}

/* Social Login Pill Buttons */
.tempo-divider {
  display: flex;
  align-items: center;
  margin: 24px 0 20px;
  color: var(--tempo-ink-tertiary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tempo-divider::before,
.tempo-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.tempo-divider span {
  padding: 0 14px;
}

.tempo-social-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.tempo-social-pill {
  width: 100%;
  height: 44px;
  border-radius: var(--tempo-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--tempo-ink-primary);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tempo-social-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.tempo-social-pill:active {
  transform: translateY(1px) scale(0.985);
}

/* Clean Error & Feedback Badges */
.tempo-feedback-error {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 4px 10px;
}

.tempo-alert-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 14px;
  color: #fca5a5;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

/* Footer Link & Micro-copy */
.tempo-auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--tempo-ink-secondary);
}

.tempo-auth-footer a {
  color: var(--tempo-accent);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
  transition: opacity 0.15s ease;
}

.tempo-auth-footer a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.tempo-auth-terms {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--tempo-ink-tertiary);
  line-height: 1.5;
}

.tempo-auth-terms a {
  color: var(--tempo-ink-secondary);
  text-decoration: underline;
}

.tempo-auth-terms a:hover {
  color: var(--tempo-accent);
}

/* Also support native Bootstrap form elements on auth pages */
.sign-page {
  background: transparent !important;
}
.sign-page::before {
  display: none !important;
}
.sign-box {
  max-width: 480px !important;
}
.sign-box .box {
  background: var(--tempo-card-bg) !important;
  backdrop-filter: blur(32px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
  border: 1px solid var(--tempo-card-border) !important;
  border-radius: var(--tempo-radius-card) !important;
  box-shadow: 
    var(--tempo-card-bezel),
    0 24px 60px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 40px -10px rgba(255, 119, 0, 0.12) !important;
  padding: 40px 36px !important;
}
.sign-box .form-control {
  background: var(--tempo-input-bg) !important;
  border: 1px solid var(--tempo-input-border) !important;
  border-radius: var(--tempo-radius-input) !important;
  color: var(--tempo-input-text) !important;
  height: 48px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
}
.sign-box .form-control:focus {
  background: var(--tempo-input-focus-bg) !important;
  border-color: var(--tempo-accent) !important;
  box-shadow: 0 0 0 4px var(--tempo-accent-ring) !important;
  color: #ffffff !important;
}
.sign-box .form-label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--tempo-label-text) !important;
  margin-bottom: 7px !important;
}
.sign-box .btn-primary {
  border-radius: var(--tempo-radius-pill) !important;
  background: var(--tempo-accent-gradient) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  height: 48px !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 16px var(--tempo-accent-glow) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.sign-box .btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 22px rgba(255, 119, 0, 0.45) !important;
}
.sign-box .btn-primary:active {
  transform: translateY(1px) scale(0.985) !important;
}
/* Floating Auth Topbar */
.tempo-auth-topbar {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 25;
  pointer-events: auto;
}

.tempo-auth-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--tempo-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--tempo-ink-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tempo-auth-back-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--tempo-accent);
  transform: translateX(-2px);
}

.tempo-auth-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--tempo-ink-primary);
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tempo-auth-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--tempo-accent);
  transform: rotate(15deg);
}

html.light .tempo-auth-back-pill, [data-theme="light"] .tempo-auth-back-pill {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

html.light .tempo-auth-back-pill:hover, [data-theme="light"] .tempo-auth-back-pill:hover {
  background: #ffffff;
  color: var(--tempo-accent);
}

html.light .tempo-auth-theme-toggle, [data-theme="light"] .tempo-auth-theme-toggle {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

html.light .tempo-auth-theme-toggle:hover, [data-theme="light"] .tempo-auth-theme-toggle:hover {
  background: #ffffff;
  color: var(--tempo-accent);
}

/* Mobile & Tablet Responsiveness for Auth */
@media (max-width: 576px) {
  .tempo-auth-topbar {
    top: 14px;
    padding: 0 16px;
  }

  .tempo-auth-back-pill span {
    display: none;
  }

  .tempo-auth-back-pill {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .tempo-auth-theme-toggle {
    width: 38px;
    height: 38px;
  }

  .tempo-auth-stage {
    padding: 72px 14px 28px !important;
  }

  .tempo-glass-card {
    padding: 28px 18px !important;
    border-radius: 22px !important;
  }

  .tempo-auth-title {
    font-size: 20px !important;
  }

  .tempo-auth-subtitle {
    font-size: 13px !important;
  }

  .tempo-demo-pill {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tempo-demo-pill-action {
    width: 100%;
    text-align: center;
  }
}
