/* DailyNail - Modern Luxury Auth Experience Stylesheet */
/* Soft Luxury Aesthetic: Playfair Display + Plus Jakarta Sans */

:root {
  --auth-primary: #d64f69;
  --auth-primary-hover: #ba3e56;
  --auth-primary-gradient: linear-gradient(135deg, #e6657f 0%, #d64f69 55%, #ba3e56 100%);
  --auth-primary-glow: rgba(214, 79, 105, 0.35);
  --auth-tech-gradient: linear-gradient(135deg, #a855f7 0%, #7e22ce 55%, #6b21a8 100%);
  --auth-tech-glow: rgba(168, 85, 247, 0.32);
  --auth-bg: #fcf7fa;
  --auth-card-bg: #ffffff;
  --auth-card-border: rgba(230, 204, 218, 0.85);
  --auth-card-shadow: 0 24px 64px -12px rgba(85, 30, 60, 0.12), 0 8px 24px -4px rgba(85, 30, 60, 0.05);
  --auth-text-title: #2b1522;
  --auth-text-body: #4c2f3f;
  --auth-text-muted: #795e6d;
  --auth-field-bg: #faf6f8;
  --auth-field-border: #ebdbe3;
  --auth-field-focus-border: #d64f69;
  --auth-field-focus-ring: rgba(214, 79, 105, 0.16);
  --auth-link: #d64f69;
  --auth-link-hover: #ba3e56;
  --auth-radius-card: 26px;
  --auth-radius-input: 16px;
  --auth-radius-btn: 999px;
}

/* Base Body on Auth Pages */
body.auth-page {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--auth-text-body);
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 218, 230, 0.7) 0%, rgba(255, 218, 230, 0) 40%),
    radial-gradient(circle at 88% 18%, rgba(253, 204, 222, 0.6) 0%, rgba(253, 204, 222, 0) 45%),
    radial-gradient(circle at 50% 92%, rgba(246, 186, 211, 0.4) 0%, rgba(246, 186, 211, 0) 55%),
    var(--auth-bg);
  min-height: 100vh;
  margin: 0;
  padding: 40px 20px 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Floating Sparkle Elements */
body.auth-page::before {
  content: '';
  position: fixed;
  top: 5%;
  left: 8%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(230, 101, 127, 0.12) 0%, rgba(230, 101, 127, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

body.auth-page::after {
  content: '';
  position: fixed;
  bottom: 8%;
  right: 6%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(249, 162, 189, 0.18) 0%, rgba(249, 162, 189, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(24px);
}

/* Central Card */
.auth-page .card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  background: var(--auth-card-bg);
  border: 1.5px solid var(--auth-card-border);
  border-radius: var(--auth-radius-card);
  box-shadow: var(--auth-card-shadow);
  padding: 38px 34px 36px;
  box-sizing: border-box;
  animation: authCardEnter 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Scoped Technician Portal Workstation Aesthetic */
body.auth-page.tech-portal {
  background:
    radial-gradient(circle at 12% 15%, rgba(243, 232, 255, 0.75) 0%, rgba(243, 232, 255, 0) 40%),
    radial-gradient(circle at 88% 18%, rgba(238, 219, 255, 0.65) 0%, rgba(238, 219, 255, 0) 45%),
    radial-gradient(circle at 50% 92%, rgba(233, 213, 255, 0.45) 0%, rgba(233, 213, 255, 0) 55%),
    #faf7fc;
}

body.auth-page.tech-portal::before {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14) 0%, rgba(168, 85, 247, 0) 70%);
}

body.auth-page.tech-portal::after {
  background: radial-gradient(circle, rgba(147, 51, 234, 0.16) 0%, rgba(147, 51, 234, 0) 70%);
}

body.auth-page.tech-portal .card {
  border-color: rgba(216, 180, 254, 0.75);
  box-shadow: 0 24px 64px -12px rgba(88, 28, 135, 0.12), 0 8px 24px -4px rgba(88, 28, 135, 0.05);
}

body.auth-page.tech-portal input:focus,
body.auth-page.tech-portal input:focus-visible {
  border-color: #9333ea;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.18);
}

body.auth-page.tech-portal .auth-input-wrap:focus-within .auth-input-icon {
  color: #7e22ce;
}

body.auth-page.tech-portal .password-toggle-btn:hover {
  background: rgba(126, 34, 206, 0.1);
  color: #7e22ce;
}

body.auth-page.tech-portal .password-toggle-btn.is-visible {
  color: #7e22ce;
}

body.auth-page.tech-portal .password-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

body.auth-page.tech-portal .required-marker {
  background: rgba(126, 34, 206, 0.12);
  color: #7e22ce;
}

body.auth-page.tech-portal .auth-location-badge {
  background: rgba(126, 34, 206, 0.1);
  color: #7e22ce;
  border-color: rgba(126, 34, 206, 0.2);
}

body.auth-page.tech-portal a,
body.auth-page.tech-portal .switch a,
body.auth-page.tech-portal .support-link {
  color: #7e22ce;
}

body.auth-page.tech-portal a:hover,
body.auth-page.tech-portal .switch a:hover,
body.auth-page.tech-portal .support-link:hover {
  color: #581c87;
}

body.auth-page.tech-portal .location-picker:focus-within {
  border-color: rgba(147, 51, 234, 0.45);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

body.auth-page.tech-portal .location-picker-btn:hover {
  border-color: rgba(126, 34, 206, 0.35);
  color: #7e22ce;
  background: #fdfaff;
}

/* Wider card for Registration forms */
.auth-page .card.card-wide {
  width: min(580px, 100%);
}

@keyframes authCardEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-page .content {
  width: 100%;
  margin: 0 auto;
}

/* Brand Header Block */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.auth-brand-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff2f6 0%, #ffe0ea 100%);
  border: 1.5px solid rgba(230, 101, 127, 0.35);
  box-shadow: 0 6px 16px -2px rgba(214, 79, 105, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-primary);
  font-size: 1.45rem;
  margin-bottom: 12px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.auth-brand-badge.tech-badge {
  background: linear-gradient(135deg, #f5f0ff 0%, #ede3fe 100%);
  border-color: rgba(168, 85, 247, 0.35);
  color: #7e22ce;
  box-shadow: 0 6px 16px -2px rgba(126, 34, 206, 0.2);
}

.auth-brand:hover .auth-brand-badge {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 22px -3px rgba(214, 79, 105, 0.28);
}

.auth-brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  background: linear-gradient(135deg, #d64f69 0%, #ba3e56 70%, #91273d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-brand-title.tech-title {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 60%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-brand-tagline {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--auth-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Portal Segment Switcher (Client vs Technician) */
.auth-portal-switch {
  display: flex;
  background: rgba(243, 230, 237, 0.65);
  border: 1px solid rgba(226, 204, 216, 0.7);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
  position: relative;
  gap: 4px;
}

.auth-portal-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--auth-text-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.auth-portal-tab:hover {
  color: var(--auth-text-title);
  background: rgba(255, 255, 255, 0.5);
}

.auth-portal-tab.active {
  background: #ffffff;
  color: var(--auth-text-title);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(96, 42, 68, 0.08);
}

.auth-portal-tab.active .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auth-primary);
  display: inline-block;
}

.auth-portal-tab.active.tech-active .tab-dot {
  background: #7e22ce;
}

/* Form Titles */
.auth-header-text {
  text-align: center;
  margin-bottom: 22px;
}

.auth-header-text .sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: var(--auth-text-title);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.auth-header-text .welcome {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--auth-text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Form Layout */
.auth-page form {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 2-Column Grid for Registration Names */
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .auth-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Field Containers */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-page label {
  display: flex;
  align-items: center;
  font-size: 0.91rem;
  font-weight: 700;
  color: var(--auth-text-title);
  margin: 0;
  gap: 6px;
}

.auth-page label .required-marker {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(214, 79, 105, 0.12);
  color: var(--auth-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Input Wrapper with Leading Icon */
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  color: #9a808e;
  font-size: 0.95rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease;
  z-index: 2;
}

.auth-page input[type="text"],
.auth-page input[type="email"],
.auth-page input[type="tel"],
.auth-page input[type="password"] {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--auth-field-border);
  border-radius: var(--auth-radius-input);
  background: var(--auth-field-bg);
  padding: 0 16px 0 44px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--auth-text-title);
  outline: none;
  box-sizing: border-box;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-page input:focus,
.auth-page input:focus-visible {
  border-color: var(--auth-field-focus-border);
  box-shadow: 0 0 0 4px var(--auth-field-focus-ring);
  background: #ffffff;
}

.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--auth-primary);
}

.auth-page input::placeholder {
  color: #a8949f;
  font-weight: 400;
}

/* Refined Password Wrapper and Toggle */
.auth-page .password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-page .password-input-wrap input {
  padding-right: 48px !important;
}

.auth-page .password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #8c7381;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 150ms ease, color 150ms ease, transform 120ms ease;
  z-index: 3;
}

.auth-page .password-toggle-btn:hover {
  background: rgba(214, 79, 105, 0.1);
  color: var(--auth-primary);
}

.auth-page .password-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--auth-field-focus-ring);
}

.auth-page .password-toggle-btn.is-visible {
  color: var(--auth-primary);
}

.auth-page .password-toggle-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Password Strength & Live Requirement Checklist */
.password-requirements-card {
  background: rgba(250, 246, 248, 0.9);
  border: 1px solid var(--auth-field-border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.password-strength-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.password-strength-track {
  flex: 1;
  height: 6px;
  background: #e6dee2;
  border-radius: 999px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 240ms ease, background 240ms ease;
  background: #ef4444;
}

.password-strength-fill.weak {
  width: 28%;
  background: #ef4444;
}

.password-strength-fill.medium {
  width: 65%;
  background: #f59e0b;
}

.password-strength-fill.strong {
  width: 100%;
  background: #10b981;
}

.password-strength-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--auth-text-muted);
  min-width: 52px;
  text-align: right;
  text-transform: uppercase;
}

.password-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
}

@media (max-width: 440px) {
  .password-checklist {
    grid-template-columns: 1fr;
  }
}

.password-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--auth-text-muted);
  font-weight: 500;
  transition: color 150ms ease;
}

.password-check-item i {
  font-size: 0.74rem;
  color: #c4b5bd;
  transition: color 150ms ease, transform 150ms ease;
}

.password-check-item.valid {
  color: #047857;
  font-weight: 600;
}

.password-check-item.valid i {
  color: #10b981;
  transform: scale(1.1);
}

/* Helper Notes & Links */
.auth-page .support-link {
  align-self: flex-end;
  color: var(--auth-link);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: -6px;
  margin-bottom: 4px;
  transition: color 140ms ease, text-decoration 140ms ease;
}

.auth-page .support-link:hover {
  color: var(--auth-link-hover);
  text-decoration: underline;
}

.auth-page .field-note {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--auth-text-muted);
  line-height: 1.35;
}

/* Modern Location Picker Component */
.auth-page .location-picker {
  margin-top: 0;
  padding: 16px;
  border-radius: 18px;
  background: #faf5f8;
  border: 1.5px solid var(--auth-field-border);
  transition: all 180ms ease;
}

.auth-page .location-picker:focus-within {
  border-color: rgba(214, 79, 105, 0.45);
  box-shadow: 0 0 0 3px var(--auth-field-focus-ring);
  background: #ffffff;
}

.auth-page .location-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.auth-page .location-picker-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--auth-text-title);
}

.auth-page .location-picker-title::before {
  display: none !important;
}

.auth-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(214, 79, 105, 0.1);
  color: var(--auth-primary);
}

.auth-page .location-picker-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--auth-field-border);
  background: #ffffff;
  color: var(--auth-text-title);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
}

.auth-page .location-picker-launcher:hover {
  border-color: var(--auth-primary);
  background: #fff5f8;
  color: var(--auth-primary);
  transform: translateY(-1px);
}

.auth-page .location-summary {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--auth-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  border: 1px dashed var(--auth-field-border);
}

.auth-page .location-summary i {
  color: var(--auth-primary);
}

/* Primary Action Buttons */
.auth-page .primary {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: var(--auth-radius-btn);
  background: var(--auth-primary-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.015em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px -4px var(--auth-primary-glow);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease, opacity 180ms ease;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}

.auth-page .primary.tech-btn {
  background: var(--auth-tech-gradient);
  box-shadow: 0 10px 24px -4px var(--auth-tech-glow);
}

.auth-page .primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 14px 28px -4px var(--auth-primary-glow);
}

.auth-page .primary.tech-btn:hover {
  box-shadow: 0 14px 28px -4px var(--auth-tech-glow);
}

.auth-page .primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px -2px var(--auth-primary-glow);
}

.auth-page .primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading Spinner on Submit */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
  display: inline-block;
}

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

/* Form Alert Banners */
.auth-page .form-message {
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 14px;
  transition: all 200ms ease;
  box-sizing: border-box;
}

.auth-page .form-message:empty {
  display: none;
}

.auth-page .form-message.error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  margin-top: 4px;
  animation: authShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.auth-page .form-message.success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #166534;
  padding: 12px 16px;
  margin-top: 4px;
  animation: authFadeIn 0.3s ease-out both;
}

@keyframes authShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer Switch Links & Secondary Options */
.auth-page .switch-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 204, 216, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.auth-page .switch {
  margin: 0;
  font-size: 0.91rem;
  color: var(--auth-text-muted);
}

.auth-page .switch a {
  color: var(--auth-link);
  font-weight: 700;
  text-decoration: none;
  transition: color 140ms ease;
}

.auth-page .switch a:hover {
  color: var(--auth-link-hover);
  text-decoration: underline;
}

/* Trust & Security Badge */
.auth-trust-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #8c7381;
  text-align: center;
}

.auth-trust-footer i {
  color: #10b981;
  font-size: 0.85rem;
}

/* Modals & Backdrop Blur */
.location-modal,
.registration-otp-modal,
.service-area-notice {
  position: fixed;
  inset: 0;
  background: rgba(35, 18, 28, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1200;
  box-sizing: border-box;
}

/* Robust Scoped Visibility Across Auth Forms and Modals */
.auth-page .hidden,
.auth-page [hidden],
.location-modal.hidden,
.registration-otp-modal.hidden,
.service-area-notice.hidden,
#maintenance-notice-modal.hidden,
.manual-address-field.hidden,
.hidden {
  display: none !important;
}

.location-modal-card,
.registration-otp-card,
.service-area-notice-card {
  width: min(460px, 100%);
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(230, 204, 218, 0.85);
  box-shadow: 0 28px 64px -12px rgba(45, 18, 32, 0.28);
  padding: 28px 26px;
  box-sizing: border-box;
  animation: authCardEnter 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.location-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.location-modal-header h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--auth-text-title);
}

.location-modal-copy {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--auth-text-muted);
}

.location-modal-close {
  background: #f3ebf0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #7a5f6e;
  cursor: pointer;
  transition: all 140ms ease;
}

.location-modal-close:hover {
  background: #ecdfe7;
  color: var(--auth-text-title);
}

.location-map {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  border: 1.5px solid var(--auth-field-border);
  overflow: hidden;
  margin-bottom: 16px;
}

.location-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-picker-btn {
  flex: 1;
  min-width: 110px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--auth-field-border);
  background: #fbf8fa;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--auth-text-title);
  cursor: pointer;
  transition: all 140ms ease;
}

.location-picker-btn:hover {
  background: #f2e9ee;
  border-color: #dfced7;
}

/* OTP Modal Content */
.registration-otp-card {
  text-align: center;
}

.registration-otp-card h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  color: var(--auth-text-title);
}

.registration-otp-subtitle {
  margin: 8px 0 18px;
  font-size: 0.9rem;
  color: var(--auth-text-muted);
  line-height: 1.4;
}

#registration-otp-input {
  width: 220px;
  height: 56px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
  padding: 0 12px;
  margin: 0 auto 16px;
  border: 2px solid var(--auth-primary);
  border-radius: 16px;
  background: #fffbfe;
  color: var(--auth-text-title);
}

.registration-otp-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.registration-otp-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: all 150ms ease;
}

.registration-otp-btn.secondary {
  background: #f0e6ec;
  color: var(--auth-text-body);
}

.registration-otp-btn.secondary:hover {
  background: #e5d8e0;
}

.registration-otp-btn.primary {
  background: var(--auth-primary-gradient);
  color: #ffffff;
  box-shadow: 0 6px 16px -2px var(--auth-primary-glow);
}

.registration-otp-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -2px var(--auth-primary-glow);
}

/* Service Area Notice Dialog */
.service-area-notice-card {
  text-align: center;
}

.service-area-notice-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 10px;
  color: var(--auth-text-title);
}

.service-area-notice-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--auth-text-body);
  margin-bottom: 20px;
}

.service-area-notice-button {
  width: 100%;
}

/* System Maintenance Notice Modal in Auth Suite */
.auth-page #maintenance-notice-modal {
  position: fixed;
  inset: 0;
  background: rgba(35, 18, 28, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50000;
  box-sizing: border-box;
}

.auth-page .maintenance-modal-card {
  width: min(460px, 100%);
  background: #ffffff;
  border-radius: 24px;
  border: 1.5px solid rgba(230, 204, 218, 0.85);
  box-shadow: 0 28px 64px -12px rgba(45, 18, 32, 0.28);
  padding: 28px 26px;
  box-sizing: border-box;
  animation: authCardEnter 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-page.tech-portal .maintenance-modal-card {
  border-color: rgba(216, 180, 254, 0.85);
  box-shadow: 0 28px 64px -12px rgba(88, 28, 135, 0.28);
}

.auth-page .maintenance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.auth-page .maintenance-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(233, 30, 99, 0.12);
  color: var(--auth-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.auth-page.tech-portal .maintenance-icon-badge {
  background: rgba(126, 34, 206, 0.12);
  color: #7e22ce;
}

.auth-page .maintenance-close-btn {
  background: #f3ebf0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #7a5f6e;
  cursor: pointer;
  transition: all 140ms ease;
}

.auth-page .maintenance-close-btn:hover {
  background: #ecdfe7;
  color: #2b1522;
}

.auth-page .maintenance-title {
  margin: 0 0 8px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--auth-text-title);
}

.auth-page .maintenance-message {
  margin: 0 0 20px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--auth-text-body);
}

.auth-page .maintenance-confirm-btn {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background: var(--auth-primary-gradient);
  color: #fff;
  border: none;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px -2px var(--auth-primary-glow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.auth-page.tech-portal .maintenance-confirm-btn {
  background: var(--auth-tech-gradient);
  box-shadow: 0 6px 16px -2px var(--auth-tech-glow);
}

.auth-page .maintenance-confirm-btn:hover {
  transform: translateY(-1px);
}

/* Mobile Responsive Refinements */
@media (max-width: 520px) {
  body.auth-page {
    padding: 24px 12px 36px;
  }

  .auth-page .card {
    padding: 28px 18px 24px;
    border-radius: 20px;
  }

  .auth-portal-switch {
    padding: 3px;
    gap: 3px;
    margin-bottom: 18px;
  }

  .auth-portal-tab {
    padding: 8px 8px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .auth-portal-tab i {
    font-size: 0.8rem;
  }

  .auth-header-text {
    margin-bottom: 18px;
  }

  .auth-header-text .sub {
    font-size: 1.45rem;
  }

  .location-picker {
    padding: 14px;
  }

  .location-picker-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .auth-location-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
  }

  .location-picker-launcher {
    height: 42px;
    font-size: 0.88rem;
  }

  .location-modal-card,
  .registration-otp-card,
  .service-area-notice-card,
  .auth-page .maintenance-modal-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .location-modal-header h3 {
    font-size: 1.2rem;
  }

  .location-modal-actions {
    flex-direction: column;
    gap: 8px;
  }

  .location-modal-actions .location-picker-btn {
    width: 100%;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .auth-portal-tab {
    padding: 6px 4px;
    font-size: 0.72rem;
    gap: 4px;
  }

  .auth-portal-tab i {
    font-size: 0.74rem;
  }

  .auth-portal-tab span:not(.tab-dot) {
    letter-spacing: -0.01em;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .auth-page .card,
  .location-modal-card,
  .registration-otp-card,
  .service-area-notice-card,
  .auth-page .primary,
  .btn-spinner,
  .auth-page .form-message.error,
  .auth-page .form-message.success {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
