/* ========== PIXEL RAIN BACKGROUND ========== */
.pixel-rain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ========== AUTH PAGES ========== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  position: relative;
  z-index: 10;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: rgba(22, 22, 31, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  display: none;
}

/* Logo / Brand */
.auth-brand {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Pixel logo */
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.auth-logo-the {
  font-family: var(--pixel-font);
  font-size: clamp(9px, 1.5vw, 12px);
  color: rgba(155, 93, 229, 0.4);
  letter-spacing: 0.3em;
  margin-bottom: 4px;
}

.auth-logo-main {
  font-family: var(--pixel-font);
  font-size: clamp(20px, 4vw, 32px);
  line-height: 1.15;
  text-align: center;
  background: linear-gradient(180deg, #c9a0f0 0%, #7c4dba 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo-program {
  font-family: var(--pixel-font);
  font-size: clamp(9px, 1.5vw, 12px);
  color: rgba(155, 93, 229, 0.35);
  letter-spacing: 0.5em;
  margin-top: 8px;
  white-space: nowrap;
}

/* Headings */
.auth-heading {
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  text-align: center;
}

.auth-subheading {
  font-family: var(--body-font);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* Form elements */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.auth-input {
  font-family: var(--body-font);
  font-size: 17px;
  font-weight: 400;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.auth-input:focus {
  border-color: var(--accent-cyan);
}

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

/* Buttons */
.auth-btn {
  font-family: var(--heading-font);
  font-size: 17px;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.auth-btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.auth-btn-primary:hover {
  background: #33f7dc;
  transform: translateY(-1px);
}

.auth-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Links */
.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.auth-link {
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--accent-cyan);
}

.auth-link-accent {
  color: var(--accent-cyan);
}

/* Messages */
.auth-message {
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  display: none;
  line-height: 1.5;
}

.auth-message.visible {
  display: block;
}

.auth-message.error {
  background: rgba(241, 91, 181, 0.1);
  border: 1px solid rgba(241, 91, 181, 0.2);
  color: var(--accent-pink);
}

.auth-message.success {
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.15);
  color: var(--accent-cyan);
}

.auth-message.info {
  background: rgba(79, 125, 249, 0.08);
  border: 1px solid rgba(79, 125, 249, 0.15);
  color: var(--accent-cyan);
}

/* State screens (check email, unconfirmed) */
.auth-state-screen {
  text-align: center;
  padding: var(--space-lg) 0;
}

.auth-state-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.auth-state-title {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.auth-state-desc {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* Password rules */
.auth-password-hint {
  font-family: var(--body-font);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -4px;
}

/* Loading spinner */
.auth-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: auth-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-md);
  }

  .auth-brand-title {
    font-size: 12px;
  }

  .auth-heading {
    font-size: 24px;
  }
}
