/* ========== AUTH SCREEN ========== */
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(124, 92, 255, 0.22), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 229, 255, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, transparent 60%),
    var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.auth-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(124, 92, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
  animation: shimmer 20s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, 20px) rotate(5deg); }
}

/* ========== AUTH CARD ========== */
.auth-card {
  width: min(480px, 100%);
  padding: 36px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(138, 147, 166, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 100%),
    rgba(18, 24, 33, 0.85);
  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 229, 255, 0.06),
    var(--shadow-glow);
  backdrop-filter: blur(24px) saturate(180%);
  position: relative;
  z-index: 1;
  animation: cardFadeIn 0.8s ease both;
  animation-delay: 0.2s;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== AUTH BRANDING ========== */
.auth-brand {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  text-align: center;
}

.auth-brand h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ========== AUTH FORM ========== */
.auth-form {
  display: grid;
  gap: 20px;
}

.auth-form .field {
  position: relative;
}

.auth-form .field input {
  width: 100%;
  padding: 14px 16px;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(138, 147, 166, 0.2);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.95rem;
  transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form .field input::placeholder {
  color: var(--text-subtle);
}

.auth-form .field input:focus {
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow:
    0 0 0 3px rgba(0, 229, 255, 0.15),
    var(--shadow-glow);
  transform: translateY(-1px);
  background: var(--bg-surface-hover);
}

/* ========== AUTH ERROR ========== */
.auth-error {
  min-height: 1.4em;
  margin: -4px 0 0;
  color: var(--accent-danger);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(255, 128, 147, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 128, 147, 0.15);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 180ms ease;
}

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

/* ========== AUTH SUBMIT BUTTON ========== */
.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border: none;
  color: var(--bg-primary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.25);
  cursor: pointer;
  transition: all 180ms ease;
}

.auth-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.7s ease;
}

.auth-submit:hover::before {
  left: 100%;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.35);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.3), 0 8px 32px rgba(0, 229, 255, 0.25);
}
