/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --color-accent: #0078ff;
  --color-accent-hover: #0062df;
  --color-accent-light: #36b9ff;
  --color-text-primary: #111827;
  --color-text-secondary: #4b5563;
  --color-text-tertiary: #9ca3af;
  --color-surface: rgba(255, 255, 255, 0.78);
  --color-surface-solid: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-focus: rgba(0, 120, 255, 0.35);
  --color-success: #059669;
  --color-error: #dc2626;
  --color-error-bg: #fef2f2;

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 20px 56px rgba(0, 120, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 40%, #ffffff 100%);
  min-height: auto;
  display: block;
  align-items: stretch;
  justify-content: stretch;
  padding: 0 var(--space-6);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 640px) {
  body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
}

/* ============================================
   AUTH LAYOUT
   ============================================ */
.auth {
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
}

@media (min-width: 640px) {
  .auth {
    padding-top: clamp(24px, 5vh, 48px);
  }
}

.auth__container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .auth__container {
    max-width: 440px;
  }
}

.auth__card {
  background: var(--color-surface);
  backdrop-filter: blur(48px) saturate(180%);
  -webkit-backdrop-filter: blur(48px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 0.75);
  border-right-color: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.45);
  border-left-color: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  animation: fadeInSlide 0.6s ease-out;
  contain: layout style paint;
}

/* ============================================
   AUTH HEADER
   ============================================ */
.auth__header {
  text-align: center;
  margin-bottom: 8px;
}

.auth__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.04em;
}

.auth__subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.auth__divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: 8px 0;
}

.auth__divider--section {
  margin: 10px 0;
}

/* ============================================
   EXISTING LOADER (PRESERVED FOR JS)
   ============================================ */
.ai-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ai-loader-overlay.show {
  opacity: 1;
}

.loader-content {
  text-align: center;
  animation: floatUp 0.8s ease-in-out;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(0, 120, 255, 0.15);
  border-top: 4px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.loader-content p {
  margin-top: var(--space-5);
  font-size: 1rem;
  color: var(--color-text-primary);
  font-weight: 500;
  letter-spacing: 0.3px;
  animation: fadeText 1.2s ease-in-out infinite alternate;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatUp { from { transform: translateY(15px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeText { from { opacity: 0.6; } to { opacity: 1; } }

/* ============================================
   FORM ELEMENTS
   ============================================ */
.auth__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth__field--half {
  min-width: 0;
}

.auth__field--full {
  grid-column: 1 / -1;
}

.auth__label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.auth__required {
  color: var(--color-error);
  font-weight: 700;
  line-height: 1;
  opacity: 0.8;
}

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

.auth__field-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-tertiary);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.auth__input {
  width: 100%;
  padding: 10px var(--space-4) 10px var(--space-10);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

@media (min-width: 1024px) {
  .auth__input {
    font-size: 15px;
  }
}

.auth__input::placeholder {
  color: var(--color-text-tertiary);
  opacity: 1;
}

.auth__input:hover:not(:disabled):not(:focus) {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-border-focus);
  background: var(--color-surface-solid);
}

.auth__input-wrap:focus-within .auth__field-icon {
  color: var(--color-accent);
}

/* Autofill */
.auth__input:-webkit-autofill,
.auth__input:-webkit-autofill:hover,
.auth__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--color-surface-solid) inset;
  transition: background-color 0s ease;
  border-color: var(--color-accent);
}

/* Password visibility toggle */
.auth__toggle {
  position: absolute;
  right: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.auth__toggle:hover {
  color: var(--color-text-secondary);
}

.auth__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
}

.auth__toggle-icon {
  width: 18px;
  height: 18px;
}

.auth__toggle-icon--hide {
  display: none;
}

.auth__toggle[aria-pressed="true"] .auth__toggle-icon--show {
  display: none;
}

.auth__toggle[aria-pressed="true"] .auth__toggle-icon--hide {
  display: block;
}

/* Validation states */
.auth__field--error .auth__label {
  color: var(--color-error);
}

.auth__field--error .auth__input {
  border-color: var(--color-error);
  background: var(--color-error-bg);
}

.auth__field--error .auth__input:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.auth__field--error .auth__field-icon {
  color: var(--color-error);
}

.auth__field--success .auth__label {
  color: var(--color-success);
}

.auth__field--success .auth__input {
  border-color: var(--color-success);
}

.auth__field--success .auth__input:focus {
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.auth__field--success .auth__field-icon {
  color: var(--color-success);
}

/* Disabled */
.auth__input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f9fafb;
}

/* ============================================
   FIELD VALIDATION STATES
   ============================================ */
.auth__field-error {
  min-height: 18px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-error);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.auth__field-error:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

.auth__field--error {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.auth__field--error .auth__input {
  border-color: var(--color-error);
  background: var(--color-error-bg);
}

.auth__field--error .auth__input:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.auth__field--error .auth__field-icon {
  color: var(--color-error);
}

.auth__field--success .auth__input {
  border-color: var(--color-success);
}

.auth__field--success .auth__input:focus {
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.auth__field--success .auth__field-icon {
  color: var(--color-success);
}

.auth__input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.auth__input[aria-invalid="false"] {
  border-color: var(--color-success);
}

/* ============================================
   PASSWORD REQUIREMENTS
   ============================================ */
.auth__password-requirements {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding: 12px;
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.auth__password-requirements--collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.auth__password-requirements:not(.auth__password-requirements--collapsed) {
  max-height: 200px;
  opacity: 1;
  pointer-events: auto;
}

.auth__requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.auth__requirement-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.auth__requirement--met {
  color: var(--color-success);
}

.auth__requirement--met .auth__requirement-icon {
  color: var(--color-success);
}

/* ============================================
   PASSWORD STRENGTH METER
   ============================================ */
.auth__password-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.auth__strength-bar {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.auth__strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width var(--transition-fast), background-color var(--transition-fast);
}

.auth__strength-text {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

/* Strength levels */
.auth__strength-fill[data-strength="1"] {
  width: 20%;
  background: #ef4444;
}

.auth__strength-fill[data-strength="2"] {
  width: 40%;
  background: #f97316;
}

.auth__strength-fill[data-strength="3"] {
  width: 60%;
  background: #eab308;
}

.auth__strength-fill[data-strength="4"] {
  width: 80%;
  background: #84cc16;
}

.auth__strength-fill[data-strength="5"] {
  width: 100%;
  background: #22c55e;
}

/* ============================================
   PHONE INPUT (intl-tel-input)
   ============================================ */
.auth__input--phone {
  padding-left: var(--space-10);
}

.iti {
  width: 100%;
}

.iti__flag-container {
  right: 8px;
}

.iti__selected-flag {
  background: transparent;
  border-radius: 4px;
  transition: background-color var(--transition-fast);
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
  background: rgba(0, 0, 0, 0.03);
}

.iti__country-list {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-medium);
  margin-top: 4px;
}

.iti__country {
  padding: 6px 10px;
}

.iti__country:hover {
  background: rgba(0, 120, 255, 0.04);
}

/* ============================================
   SEGMENTED CONTROL
   ============================================ */
.auth__segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.auth__segment-item {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.auth__segment-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.auth__segment-control {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-secondary);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

.auth__segment-item:hover .auth__segment-control {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--color-text-primary);
  background: rgba(0, 0, 0, 0.02);
}

.auth__segment-item input:checked + .auth__segment-control {
  background: rgba(0, 120, 255, 0.06);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: none;
}

.auth__segment-item input:focus-visible + .auth__segment-control {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
}

/* ============================================
   TERMS CHECKBOX
   ============================================ */
.auth__field--terms {
  margin-top: 2px;
}

.auth__field--terms .auth__checkbox {
  align-items: flex-start;
}

.auth__field--terms .auth__checkbox-box {
  margin-top: 1px;
}

.auth__link-inline {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

.auth__link-inline:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.auth__link-inline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
  border-radius: 3px;
}

/* Messages */
.auth__message {
  margin-top: var(--space-4);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 20px;
  transition: color var(--transition-fast);
}

.auth__message:empty {
  display: none;
}

.auth__message:not(:empty) {
  display: block;
  margin-top: 12px;
}

.auth__message--error {
  color: var(--color-error);
}

.auth__message--success {
  color: var(--color-success);
  animation: fadeIn 0.3s ease-out;
}

/* Verify Email Inline Alerts */
.auth__verify-actions .auth__message {
  margin-top: 0;
  margin-bottom: 0;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 8px;
  border: 1px solid transparent;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.auth__verify-actions .auth__message:empty {
  display: none;
}

.auth__verify-actions .auth__message--error {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991C1C;
}

.auth__verify-actions .auth__message--error::before {
  content: "⚠";
  display: inline-block;
  margin-right: 6px;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
}

.auth__verify-actions .auth__message--success {
  background: #ECFDF5;
  border-color: #BBF7D0;
  color: #065F46;
  animation: fadeIn 0.3s ease-out;
}

.auth__verify-actions .auth__message--success::before {
  content: "✓";
  display: inline-block;
  margin-right: 6px;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
}

/* ============================================
   ACTIONS ROW
   ============================================ */
.auth__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* ============================================
   CUSTOM CHECKBOX
   ============================================ */
.auth__checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
}

.auth__checkbox input {
  position: absolute;
  opacity: 0;
  width: 44px;
  height: 44px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

.auth__checkbox-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  background: var(--color-surface-solid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.auth__checkbox-box::after {
  content: '';
  width: 10px;
  height: 10px;
  background: transparent;
  border-radius: 2px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transition: background-color var(--transition-fast);
}

.auth__checkbox-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.auth__checkbox:hover .auth__checkbox-label {
  color: var(--color-text-primary);
}

.auth__checkbox input:checked + .auth__checkbox-box {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.auth__checkbox input:checked + .auth__checkbox-box::after {
  background: #ffffff;
}

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

.auth__checkbox:hover .auth__checkbox-box {
  border-color: rgba(0, 0, 0, 0.4);
}

/* ============================================
   FORGOT PASSWORD LINK
   ============================================ */
.auth__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

.auth__link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.auth__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
  border-radius: 3px;
}

/* ============================================
   PRIMARY BUTTON
   ============================================ */
.auth__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px var(--space-6);
  min-height: 40px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 120, 255, 0.15);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.auth__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 120, 255, 0.22), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth__submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 120, 255, 0.12);
  transition: transform 0.06s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.06s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-border-focus), 0 4px 16px rgba(0, 120, 255, 0.25);
}

.auth__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 120, 255, 0.1);
}

/* Button loading state */
.auth__submit--loading {
  pointer-events: none;
}

.auth__submit--loading .auth__submit-text {
  visibility: visible;
  padding-left: 32px;
}

.auth__submit--loading .auth__submit-loader {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.auth__submit-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* Success-ready state (CSS only) */
.auth__submit--success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  pointer-events: none;
}

/* Tertiary button (text-link style) */
.auth__submit--tertiary {
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: none;
  padding: 3px 8px;
  min-height: auto;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth__submit--tertiary::before {
  content: "↻";
  margin-right: 4px;
  font-size: 12px;
  display: inline-block;
  transition: transform 0.15s ease;
}

.auth__submit--tertiary:hover:not(:disabled) {
  color: var(--color-accent);
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

.auth__submit--tertiary:hover:not(:disabled)::before {
  transform: rotate(-20deg);
}

.auth__submit--tertiary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
  border-radius: 3px;
}

.auth__submit--tertiary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================
   CREATE ACCOUNT SECTION
   ============================================ */
.auth__alt {
  text-align: center;
  margin-top: 8px;
}

.auth__alt-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 2px;
}

.auth__alt-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

.auth__alt-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.auth__alt-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
  border-radius: 3px;
}

/* ============================================
   SECURITY CARD
   ============================================ */
.auth__security {
  margin-top: 14px;
}

.auth__security-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.auth__security-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

.auth__security-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  flex: 1;
}

.auth__security-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(0, 120, 255, 0.06);
  color: var(--color-accent);
  border-radius: 10px;
}

.auth__security-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.auth__security-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.auth__security-illustration {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-tertiary);
}

/* ============================================
   VERIFY EMAIL PAGE
   ============================================ */


/* Verify Email Action Bar */
.auth__verify-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.auth__verify-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, text-decoration 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.auth__verify-nav-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.auth__verify-nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
  border-radius: 3px;
}

.auth__verify-nav-separator {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Override tertiary button inside action bar */
.auth__verify-action-bar .auth__submit--tertiary {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  min-height: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.15s ease, text-decoration 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth__verify-action-bar .auth__submit--tertiary:hover:not(:disabled) {
  color: var(--color-accent);
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

.auth__verify-action-bar .auth__submit--tertiary:focus-visible:not(:disabled) {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
  border-radius: 3px;
}

/* Mobile: stack action bar vertically and convert to natural document flow */
@media (max-width: 639px) {
  body {
    min-height: auto;
    min-height: auto;
    display: block;
    align-items: stretch;
    justify-content: stretch;
    padding: 0 var(--space-6);
  }

  .auth {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .auth__container {
    max-width: 100%;
    margin: 0 auto;
  }

  .auth__verify-action-bar {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0;
  }

  .auth__verify-nav-separator {
    display: none;
  }
}

.auth__verify-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.auth__verify-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-top: -4px;
  opacity: 0.9;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.auth__verify-icon--waiting {
  color: var(--color-accent);
}

.auth__verify-icon--verified {
  color: var(--color-success);
  animation: fadeIn 0.5s ease-out;
}

.auth__verify-icon--checking {
  color: var(--color-accent);
  animation: spin 1.5s linear infinite;
}

.auth__verify-icon--waiting .auth__verify-icon--pulse {
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.6; }
}

.auth__verify-status-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin: 1px 0;
}

.auth__verify-status-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

.auth__verify-email {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-primary);
  word-break: break-all;
  margin: 0;
}

.auth__verify-mail-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.auth__resend-countdown {
  margin-left: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-tertiary);
}

.auth__verify-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.auth__verify-action-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.auth__verify-action-group--secondary {
  align-items: center;
  text-align: center;
}

.auth__verify-need-help {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-tertiary);
  margin: 2px 0;
}

.auth__verify-actions .auth__submit--secondary,
.auth__verify-mail-links .auth__submit--secondary-outlined {
  background: var(--color-surface-solid);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  box-shadow: none;
  padding: 6px var(--space-5);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.auth__verify-actions .auth__submit--secondary:hover:not(:disabled),
.auth__verify-mail-links .auth__submit--secondary-outlined:hover:not(:disabled) {
  background: var(--color-surface-solid);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--color-text-primary);
  box-shadow: none;
  transform: none;
}

.auth__verify-actions .auth__submit--secondary:active:not(:disabled),
.auth__verify-mail-links .auth__submit--secondary-outlined:active:not(:disabled) {
  transform: none;
}

.auth__alt-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

.auth__alt-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.auth__alt-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
  border-radius: 3px;
}

.auth__verify-back-link {
  display: block;
  width: fit-content;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-secondary);
  text-decoration: none;
  align-self: flex-start;
  margin-top: 2px;
  transition: color 0.15s ease, text-decoration 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth__verify-back-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.auth__verify-back-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
  border-radius: 3px;
}

.auth__verify-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  text-decoration: none;
  text-align: left;
  min-height: 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.auth__verify-card:hover {
  border-color: rgba(0, 120, 255, 0.3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.auth__verify-card:focus-visible {
  outline: none;
  border-color: rgba(0, 120, 255, 0.4);
  box-shadow: 0 0 0 2px var(--color-border-focus);
}

.auth__verify-card-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.auth__verify-card-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.auth__verify-card-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.auth__verify-card-desc {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-secondary);
}

/* Verify Email OR Divider */
.auth__verify-or {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
}

.auth__verify-or::before,
.auth__verify-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Verify Email Section Divider */
.auth__verify-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 8px 0;
}

/* Verify Email Email Pill */
.auth__verify-email-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(0, 120, 255, 0.04);
  border: 1px solid rgba(0, 120, 255, 0.2);
  margin: 1px 0;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  overflow: hidden;
  white-space: nowrap;
}

.auth__verify-email-pill:focus-within {
  border-color: rgba(0, 120, 255, 0.4);
  box-shadow: 0 1px 4px rgba(0, 120, 255, 0.1);
}

.auth__verify-email-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.auth__verify-email {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-primary);
  word-break: break-all;
}

/* Verify Email Help Section */
.auth__verify-help {
  width: 100%;
  margin-top: 2px;
}

.auth__verify-help-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
  text-align: left;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth__verify-help-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.auth__verify-help-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
  border-radius: 4px;
}

.auth__verify-help-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  color: var(--color-text-tertiary);
}

.auth__verify-help-toggle[aria-expanded="true"] .auth__verify-help-icon {
  transform: rotate(180deg);
}

.auth__verify-help-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.15s ease, opacity 0.15s ease;
  padding: 0 4px;
}

.auth__verify-help-content--expanded {
  max-height: 200px;
  opacity: 1;
  padding: 6px 4px var(--space-3);
}

.auth__verify-help-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.auth__verify-help-item {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Verify Email Benefits Section */
.auth__verify-benefits {
  width: 100%;
  text-align: left;
}

.auth__verify-benefits-title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-tertiary);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 3px;
}

.auth__verify-benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 0;
  padding: 0;
}

.auth__verify-benefit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.auth__verify-benefit-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-success);
}

.auth__verify-benefit-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-primary);
}

/* Change email link */
.auth__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
  margin: 4px 0;
}

.auth__link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.auth__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
  border-radius: 3px;
}

/* Verify Email Onboarding Progress */
.auth__verify-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 85%;
  gap: 4px;
}

.auth__verify-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.auth__verify-progress-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  color: var(--color-text-tertiary);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
}

.auth__verify-progress-step--active .auth__verify-progress-dot {
  color: var(--color-success);
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.2);
}

.auth__verify-progress-step--current .auth__verify-progress-dot {
  color: var(--color-accent);
  background: rgba(0, 120, 255, 0.08);
  border-color: var(--color-accent);
}

.auth__verify-progress-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.auth__verify-progress-label-line {
  display: inline;
}

.auth__verify-progress-step--active .auth__verify-progress-label {
  color: var(--color-text-primary);
  font-weight: 600;
}

.auth__verify-progress-step--current .auth__verify-progress-label {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.auth__verify-progress-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  min-width: 4px;
  max-width: 40px;
  border-radius: 1px;
}

.auth__verify-progress-step--active + .auth__verify-progress-line {
  background: var(--color-success);
}

.auth__verify-progress-step--current + .auth__verify-progress-line {
  background: var(--color-accent);
}

/* Verify Email Explore Section */
.auth__verify-explore {
  width: 100%;
}

.auth__verify-explore-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.auth__verify-explore-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
  flex: 1;
}

.auth__verify-explore-subtitle {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.auth__verify-explore-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  color: var(--color-text-tertiary);
}

.auth__verify-explore-toggle[aria-expanded="true"] .auth__verify-explore-icon {
  transform: rotate(180deg);
}

.auth__verify-explore-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.auth__verify-explore-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-border-focus);
  border-radius: 4px;
}

.auth__verify-explore-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.15s ease, opacity 0.15s ease;
  padding: 0 4px;
}

.auth__verify-explore-content--expanded {
  max-height: 600px;
  opacity: 1;
  padding: 6px 4px var(--space-3);
}

.auth__verify-chip-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 4px;
}

.auth__verify-chip-section:last-child {
  margin-bottom: 0;
}

.auth__verify-chip-category {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-tertiary);
  text-transform: none;
  letter-spacing: 0;
  align-self: flex-start;
}

.auth__verify-chip-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  justify-content: flex-start;
}

.auth__verify-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  height: 28px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-secondary);
  background: var(--color-surface-solid);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.auth__verify-chip:hover {
  background: rgba(0, 120, 255, 0.06);
  color: var(--color-accent);
  border-color: rgba(0, 120, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Micro animations */
.auth__verify-icon--waiting {
  color: var(--color-accent);
  animation: pulse 4s ease-in-out infinite;
}

.auth__verify-icon--verified {
  color: var(--color-success);
  animation: scaleIn 0.5s ease-out;
}

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

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile first: natural document flow */
@media (max-width: 639px) {
  html, body {
    height: auto;
    overflow-x: hidden;
  }

  .auth__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (min-width: 640px) {
  .auth__container {
    max-width: 520px;
  }

  .auth__card {
    padding: 24px;
  }

  .auth__title {
    font-size: 30px;
  }

  .auth__subtitle {
    font-size: 16px;
  }

  .auth__verify-benefits-list {
    grid-template-columns: 1fr 1fr;
  }

  .auth__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }

  .auth__field--full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  body {
    padding: 0 var(--space-8);
  }

  .auth {
    padding-top: clamp(8px, 1.5vh, 16px);
    padding-bottom: 12px;
  }

  .auth__container {
    max-width: 540px;
  }

  .auth__card {
    padding: 14px 18px;
  }

  .auth__header {
    margin-bottom: 6px;
  }

  .auth__title {
    font-size: 24px;
    margin-bottom: 4px;
  }

  .auth__subtitle {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .auth__divider {
    margin: 4px 0;
  }

  .auth__verify-content {
    gap: 2px;
  }

  .auth__verify-icon {
    width: 38px;
    height: 38px;
    margin-top: -3px;
  }

  .auth__verify-status-title {
    font-size: 16px;
  }

  .auth__verify-status-desc {
    font-size: 12px;
  }

  .auth__verify-email {
    font-size: 12px;
  }

  .auth__verify-email-pill {
    height: 28px;
    padding: 0 16px;
    margin: 1px 0;
  }

  .auth__verify-email-icon {
    font-size: 13px;
  }

  .auth__verify-or {
    font-size: 9px;
  }

  .auth__verify-actions {
    gap: 3px;
  }

  .auth__submit {
    min-height: 34px;
    padding: 5px var(--space-5);
    font-size: 12px;
  }

  .auth__submit--secondary-outlined .auth__submit-icon,
  .auth__submit--secondary .auth__submit-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }

  .auth__submit--tertiary {
    font-size: 10px;
    padding: 3px 6px;
  }

  .auth__resend-countdown {
    font-size: 10px;
  }

  .auth__alt-link {
    font-size: 12px;
  }

  .auth__link {
    font-size: 12px;
  }

  .auth__verify-help-toggle {
    padding: 12px 0;
    font-size: 12px;
  }

  .auth__verify-help-item {
    font-size: 10px;
    gap: 4px;
  }

  .auth__verify-help-content--expanded {
    padding: 6px 4px var(--space-3);
  }

  .auth__verify-benefits-title {
    font-size: 9px;
    margin-bottom: 2px;
  }

  .auth__verify-benefits-list {
    gap: 2px;
    grid-template-columns: 1fr 1fr;
  }

  .auth__verify-benefit-item {
    gap: 4px;
    font-size: 11px;
  }

  .auth__verify-benefit-check {
    width: 13px;
    height: 13px;
  }

  .auth__verify-benefit-title {
    font-size: 11px;
  }

   .auth__verify-card--centered {
    width: 70%;
    max-width: 320px;
  }

  .auth__verify-nav-link {
    font-size: 12px;
  }

  .auth__verify-action-bar {
    gap: 14px;
    margin-bottom: 8px;
  }

  .auth__verify-nav-separator {
    height: 12px;
  }

  .auth__verify-card-title {
    font-size: 10px;
  }

  .auth__verify-card-desc {
    font-size: 9px;
  }

  .auth__verify-explore-toggle {
    padding: 16px 0;
    font-size: 11px;
  }

  .auth__verify-explore-icon {
    width: 15px;
    height: 15px;
  }

  .auth__verify-explore-title {
    font-size: 10px;
  }

  .auth__verify-explore-subtitle {
    font-size: 9px;
  }

  .auth__verify-explore-content--expanded {
    max-height: 600px;
    opacity: 1;
    padding: 6px 4px var(--space-3);
  }

  .auth__verify-chip-section {
    gap: 2px;
    margin-bottom: 3px;
  }

  .auth__verify-chip-category {
    font-size: 8px;
  }

  .auth__verify-chip-wrapper {
    gap: 2px;
  }

  .auth__verify-chip {
    font-size: 9px;
    padding: 2px 8px;
    height: 22px;
    border-radius: 10px;
  }

  .auth__verify-progress {
    gap: 2px;
  }

  .auth__verify-progress-step {
    font-size: 8px;
  }

  .auth__verify-progress-dot {
    width: 15px;
    height: 15px;
    font-size: 9px;
  }
}

/* ============================================
   SAFE AREA & HIGH DPI
   ============================================ */
@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: max(var(--space-6), env(safe-area-inset-top));
    padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
    padding-left: max(var(--space-6), env(safe-area-inset-left));
    padding-right: max(var(--space-6), env(safe-area-inset-right));
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .auth__checkbox-box {
    border-width: 1px;
  }

  .auth__input {
    border-width: 0.5px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .auth__card {
    animation: none;
  }
}

/* ============================================
   DARK MODE PREPARATION (VARIABLES ONLY)
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text-primary: #f3f4f6;
    --color-text-secondary: #d1d5db;
    --color-text-tertiary: #9ca3af;
    --color-surface: rgba(30, 41, 59, 0.78);
    --color-surface-solid: #1e293b;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-focus: rgba(56, 189, 248, 0.35);
    --color-error-bg: rgba(239, 68, 68, 0.1);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-elevated: 0 20px 56px rgba(56, 189, 248, 0.1), 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
  }

  .auth__checkbox-box {
    background: var(--color-surface-solid);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .auth__input::placeholder {
    color: #6b7280;
  }

  .auth__security-card {
    background: var(--color-surface-solid);
    border-color: var(--color-border);
  }

  .auth__divider {
    background: var(--color-border);
  }
}

@media (max-width: 767px) {
  .auth__verify-progress-label {
    white-space: normal;
  }

  .auth__verify-progress-label-line {
    display: block;
  }
}
