:root {
  --bg: #121826;
  --card: rgba(30, 36, 51, 0.8);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #eef1f6;
  --muted: #9099ad;
  --primary: #6C63FF;
  --primary-600: #A56DFF;
  --success: #31d0aa;
  --danger: #ff6b6b;
  --ring: rgba(108, 99, 255, 0.55);
  --shadow: rgba(0, 0, 0, 0.5);
}

/* Light theme */
html.light {
  --bg: #fafbfc;
  --card: rgba(255, 255, 255, 0.95);
  --card-border: rgba(108, 99, 255, 0.12);
  --text: #1a1d29;
  --muted: #6b7280;
  --primary: #6C63FF;
  --primary-600: #A56DFF;
  --ring: rgba(108, 99, 255, 0.25);
  --shadow: rgba(0, 0, 0, 0.08);
}

/* Elite light mode enhancements */
html.light .glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(108, 99, 255, 0.15);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

html.light .btn-primary {
  background: linear-gradient(135deg, #6C63FF, #A56DFF);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
  border: none;
}

html.light .btn-primary:hover {
  background: linear-gradient(135deg, #5B52E8, #9A5AE8);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
  transform: translateY(-1px);
}

html.light .nav-item.active {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(165, 109, 255, 0.05));
  border: 1px solid rgba(108, 99, 255, 0.2);
}

html.light .panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(108, 99, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 600;
  line-height: 1.2;
}

.heading-primary {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 700;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.background .gradient {
  position: absolute;
  inset: -20% -10% -20% -10%;
  background: radial-gradient(60% 60% at 20% 20%, rgba(94, 163, 255, 0.25), transparent 60%),
              radial-gradient(50% 50% at 80% 30%, rgba(255, 99, 146, 0.2), transparent 60%),
              radial-gradient(40% 40% at 70% 80%, rgba(88, 255, 205, 0.18), transparent 60%);
  filter: blur(60px) saturate(120%);
}

.background .grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
              linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 70%);
}

.container {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 100px 24px 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px var(--shadow);
}

.brand {
  text-align: center;
  margin-bottom: 16px;
}

.brand .logo { display: none; }
.brand .logo-img { width: 64px; height: 64px; border-radius: 14px; display: block; margin: 0 auto 10px; border: 1px solid var(--card-border); object-fit: cover; background: rgba(255,255,255,0.06); }

.brand h1 {
  font-size: 24px;
  margin: 0 0 6px;
}

.muted {
  color: var(--muted);
  margin: 0 0 8px;
}

form {
  display: grid;
  gap: 14px;
}

/* tabs removed */

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(10, 14, 25, 0.35);
  color: var(--text);
  outline: none;
  transition: box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

html.light .field input[type="email"],
html.light .field input[type="password"],
html.light .field input[type="text"] {
  background: rgba(255, 255, 255, 0.9);
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.password-wrap {
  position: relative;
}

.hidden {
  display: none !important;
}

.success-message {
  background: linear-gradient(135deg, rgba(58, 210, 159, 0.15), rgba(46, 160, 120, 0.1));
  border: 1px solid rgba(58, 210, 159, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(58, 210, 159, 0.2);
}

.success-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-weight: 500;
}

.success-icon {
  width: 20px;
  height: 20px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
}

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

.icon-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: conic-gradient(from 90deg at 50% 50%, var(--muted), var(--text));
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23000" viewBox="0 0 24 24"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 12a4.5 4.5 0 110-9 4.5 4.5 0 010 9z"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23000" viewBox="0 0 24 24"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 12a4.5 4.5 0 110-9 4.5 4.5 0 010 9z"/></svg>') center/contain no-repeat;
}

.icon-btn[aria-pressed="true"] .icon {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23000" viewBox="0 0 24 24"><path d="M2.1 3.51L3.5 2.1l18.4 18.39-1.41 1.41-2.59-2.59A13.4 13.4 0 0112 19.5C7 19.5 2.73 16.39 1 12a14.89 14.89 0 013.86-5.43L2.1 3.51zM7.1 8.71A4.47 4.47 0 007.5 12a4.5 4.5 0 006.4 4.1l-6.8-6.8zM12 4.5c4.22 0 8.19 2.39 10 6-1 2.55-2.97 4.67-5.37 5.86l-2.16-2.16A4.5 4.5 0 0012 7.5c-.78 0-1.52.19-2.17.52L7.1 8.7c1.43-2.53 3.74-4.2 6.4-4.2z"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23000" viewBox="0 0 24 24"><path d="M2.1 3.51L3.5 2.1l18.4 18.39-1.41 1.41-2.59-2.59A13.4 13.4 0 0112 19.5C7 19.5 2.73 16.39 1 12a14.89 14.89 0 013.86-5.43L2.1 3.51zM7.1 8.71A4.47 4.47 0 007.5 12a4.5 4.5 0 006.4 4.1l-6.8-6.8zM12 4.5c4.22 0 8.19 2.39 10 6-1 2.55-2.97 4.67-5.37 5.86l-2.16-2.16A4.5 4.5 0 0012 7.5c-.78 0-1.52.19-2.17.52L7.1 8.7c1.43-2.53 3.74-4.2 6.4-4.2z"/></svg>') center/contain no-repeat;
}

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

.row.between {
  justify-content: space-between;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
}

.link {
  color: var(--primary);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.primary, .secondary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  font-weight: 600;
  cursor: pointer;
}

.primary {
  color: #0b1220;
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  box-shadow: 0 8px 24px rgba(61, 134, 255, 0.35);
}

.primary:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: rgba(255,255,255,0.2);
  display: none;
  animation: spin 1s linear infinite;
}

.loading .btn-label { display: none; }
.loading .spinner { display: inline-block; }

.error {
  min-height: 18px;
  color: var(--danger);
  margin: 6px 0 0;
  font-size: 13px;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 6px 0;
}

.divider::before, .divider::after {
  content: "";
  height: 1px;
  background: var(--card-border);
}

.signup {
  text-align: center;
  color: var(--muted);
}

.theme-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.theme-toggle .sun,
.theme-toggle .moon {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: transform 200ms ease, opacity 200ms ease;
}

.theme-toggle .sun {
  background: radial-gradient(circle at center, #ffda6a 40%, transparent 41%),
              conic-gradient(from 0deg, #ffda6a, #ffb84d);
  border-radius: 50%;
}

.theme-toggle .moon {
  background: radial-gradient(circle at 60% 40%, #cbd5e1 35%, transparent 36%)
              , radial-gradient(circle at center, #94a3b8 50%, transparent 51%);
  border-radius: 50%;
  transform: translateY(8px);
  opacity: 0;
}

html.light .theme-toggle .sun { transform: translateY(8px); opacity: 0; }
html.light .theme-toggle .moon { transform: translateY(0); opacity: 1; }

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

@media (max-width: 480px) {
  .card { padding: 22px; }
  .brand h1 { font-size: 22px; }
}

/* Terms & Conditions Modal */
.terms-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease-out;
}

.terms-modal[hidden] {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.terms-modal-content {
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px var(--shadow);
  overflow: hidden;
}

.terms-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.terms-modal-header > div {
  flex: 1;
}

.terms-modal-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.terms-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.terms-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

.terms-close-btn:active {
  transform: scale(0.95);
}

.terms-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  color: var(--text);
  line-height: 1.7;
}

.terms-modal-body::-webkit-scrollbar {
  width: 8px;
}

.terms-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.terms-modal-body::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}

.terms-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.terms-modal-body h1,
.terms-modal-body h2,
.terms-modal-body h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.terms-modal-body h1:first-child,
.terms-modal-body h2:first-child,
.terms-modal-body h3:first-child {
  margin-top: 0;
}

.terms-modal-body p {
  margin: 12px 0;
}

.terms-modal-body ul,
.terms-modal-body ol {
  margin: 12px 0;
  padding-left: 24px;
}

.terms-modal-body li {
  margin: 8px 0;
}

.terms-modal-body strong {
  color: var(--text);
  font-weight: 600;
}

.terms-modal-body hr {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 24px 0;
}

.terms-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
  background: var(--card);
}

.terms-scroll-indicator {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
  padding: 8px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.terms-scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.terms-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terms-checkbox {
  font-size: 14px;
}

.terms-checkbox input[type="checkbox"]:disabled + span {
  opacity: 0.5;
  cursor: not-allowed;
}

.terms-checkbox input[type="checkbox"]:not(:disabled) + span {
  cursor: pointer;
}

#terms-accept-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .terms-modal {
    padding: 16px;
  }
  
  .terms-modal-content {
    max-height: 95vh;
  }
  
  .terms-modal-header,
  .terms-modal-body,
  .terms-modal-footer {
    padding: 20px;
  }
}

/* Email Confirmation Modal */
.confirmation-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.confirmation-modal[hidden] {
  display: none;
}

.confirmation-modal-content {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 48px 40px;
  text-align: center;
  animation: scaleIn 0.3s ease-out;
}

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

.confirmation-icon {
  font-size: 64px;
  margin-bottom: 24px;
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.confirmation-modal-content h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
}

.confirmation-text {
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.confirmation-text strong {
  color: var(--primary);
  font-weight: 600;
}

.confirmation-subtext {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.confirmation-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 32px;
  font-style: italic;
}

.confirmation-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.confirmation-actions button {
  flex: 1;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}

.confirmation-modal-content button.secondary {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
}

.confirmation-modal-content button.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

@media (max-width: 640px) {
  .confirmation-modal-content {
    padding: 36px 28px;
    max-width: 100%;
  }
  
  .confirmation-icon {
    font-size: 48px;
    margin-bottom: 20px;
  }
  
  .confirmation-modal-content h2 {
    font-size: 24px;
  }
  
  .confirmation-text {
    font-size: 16px;
  }
}

/* Verification Modal */
.verification-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.verification-modal[hidden] {
  display: none;
}

.verification-modal-content {
  width: 100%;
  max-width: 500px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.verification-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}

.verification-modal-header h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
}

.verification-modal-header .muted {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.verification-modal-header #verification-email {
  font-weight: 600;
  color: var(--primary);
}

.verification-modal-body {
  padding: 28px;
  flex: 1;
  overflow-y: auto;
}

.code-input-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.code-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.code-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.code-input:invalid {
  border-color: var(--danger);
}

.verification-timer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0;
}

.verification-timer #timer-countdown {
  font-weight: 600;
  color: var(--primary);
}

.verification-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.verification-modal-footer button {
  width: 100%;
}

#resend-code-btn {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 8px;
  transition: opacity 0.2s ease;
}

#resend-code-btn:hover:not(:disabled) {
  opacity: 0.8;
}

#resend-code-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .verification-modal-content {
    max-width: 100%;
    max-height: 95vh;
  }
  
  .verification-modal-header,
  .verification-modal-body,
  .verification-modal-footer {
    padding: 20px;
  }
  
  .code-input {
    width: 45px;
    height: 55px;
    font-size: 20px;
  }
}

/* Maintenance Notice */
.maintenance-notice {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1d29 0%, #2d1b3d 50%, #1a1d29 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  z-index: 10000;
  padding: 0;
  overflow: hidden;
}

/* Animated grid pattern overlay */
.maintenance-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Maintenance Header */
.maintenance-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.maintenance-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: #6C63FF;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.maintenance-logo:hover {
  opacity: 0.8;
}

.maintenance-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6C63FF, #A56DFF);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
}

.maintenance-back-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.maintenance-back-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

/* Maintenance Content Card */
.maintenance-content {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 56px 48px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(108, 99, 255, 0.1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 20px));
  animation: fadeInUp 0.6s ease-out forwards;
  border: 2px solid transparent;
  background-clip: padding-box;
  margin-top: 40px; /* Account for header */
  opacity: 0;
}

/* Gradient border effect */
.maintenance-content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #6C63FF, #A56DFF, #6C63FF);
  border-radius: 24px;
  z-index: -1;
  opacity: 0.3;
  animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 20px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, calc(-50% + 0px));
  }
}

.maintenance-icon-wrapper {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.maintenance-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
}

.maintenance-icon svg {
  width: 48px;
  height: 48px;
  stroke: #667eea;
  stroke-width: 2;
  fill: none;
}

.maintenance-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1d29;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.maintenance-content p {
  font-size: 18px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 400;
}

.maintenance-subtext {
  font-size: 15px;
  color: #718096;
  margin-top: 24px;
  font-style: italic;
}

@media (max-width: 480px) {
  .maintenance-header {
    padding: 20px 24px;
  }
  
  .maintenance-logo {
    font-size: 20px;
  }
  
  .maintenance-logo-icon {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  
  .maintenance-back-link {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .maintenance-content {
    padding: 40px 32px;
    border-radius: 20px;
  }
  
  .maintenance-icon-wrapper {
    margin-bottom: 24px;
  }
  
  .maintenance-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  
  .maintenance-icon svg {
    width: 36px;
    height: 36px;
  }
  
  .maintenance-content h2 {
    font-size: 26px;
    margin-bottom: 16px;
  }
  
  .maintenance-content p {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .maintenance-subtext {
    font-size: 14px;
    margin-top: 20px;
  }
}

/* Forgot Password Modal */
.forgot-password-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.forgot-password-modal[hidden] {
  display: none;
}

.forgot-password-modal-content {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 48px 40px;
  text-align: center;
  animation: scaleIn 0.3s ease-out;
}

.forgot-password-icon {
  font-size: 64px;
  margin-bottom: 24px;
  animation: bounce 0.6s ease-out;
}

.forgot-password-modal-content h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
}

.forgot-password-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
}

.forgot-password-modal-content .field {
  text-align: left;
  margin-bottom: 24px;
}

.forgot-password-modal-content button.primary {
  width: 100%;
  margin-bottom: 16px;
}

.forgot-password-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
  text-decoration: underline;
}

.forgot-password-close:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .forgot-password-modal-content {
    padding: 32px 24px;
    max-width: 100%;
  }
  
  .forgot-password-icon {
    font-size: 48px;
    margin-bottom: 20px;
  }
  
  .forgot-password-modal-content h2 {
    font-size: 24px;
  }
  
  .forgot-password-text {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

/* Password Reset Form */
.password-reset-form {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.password-reset-form[hidden] {
  display: none;
}

.password-reset-form .card {
  width: 100%;
  max-width: 420px;
}


