/* ══════════════════════════════════════════
   AUTH SCREEN — LIMBO ABISMO ETERNO
══════════════════════════════════════════ */

#screen-auth {
  align-items: center;
  justify-content: center;
  background-image: url('../background.png');
  background-size: cover;
  background-position: center;
  overflow-y: auto;
  padding: 20px 16px;
  padding-bottom: calc(20px + var(--safe-b));
  position: relative;
}

#screen-auth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 0, 18, 0.48);
  pointer-events: none;
  z-index: 0;
}

#screen-auth > * { position: relative; z-index: 1; }

.auth-box {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, rgba(30,10,55,0.93) 0%, rgba(12,4,28,0.96) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(155,48,255,0.55);
  box-shadow: 0 0 10px rgba(155,48,255,0.35), inset 0 0 10px rgba(155,48,255,0.06);
  border-radius: 3px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(100,40,180,0.45);
  margin-bottom: 0;
}

.auth-tab {
  flex: 1;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: rgba(160,110,200,0.5);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
  color: #d0a0ff;
  border-bottom: 2px solid #9b30ff;
  text-shadow: 0 0 8px rgba(155,48,255,0.55);
}

.auth-tab:hover:not(.active) { color: rgba(180,130,230,0.75); }

.auth-body { padding: 24px 32px 28px; }

.auth-logo { text-align: center; margin-bottom: 24px; }

.auth-logo h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(38px, 10vw, 52px);
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #d8aaff;
  text-shadow: 0 0 10px #9b30ff, 0 0 22px #9b30ff, 0 0 45px #7a18cc, 0 0 90px #5a0fa0;
  margin: 0;
  animation: logo-pulse 3s ease-in-out infinite;
}

.auth-logo p {
  font-family: 'Cinzel', Georgia, serif;
  color: rgba(160,110,220,0.65);
  font-size: 10px;
  letter-spacing: 0.5em;
  margin-top: 4px;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1; }
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(180,140,240,0.8);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  background: rgba(8,3,20,0.75);
  border: 1px solid rgba(100,50,180,0.5);
  color: #d0b8ff;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 2px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: rgba(155,48,255,0.85);
  box-shadow: 0 0 0 2px rgba(155,48,255,0.18), 0 0 8px rgba(155,48,255,0.25);
}

.field input::placeholder { color: rgba(120,80,180,0.35); }

.auth-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(180deg, #7a22d4 0%, #5a0fa0 100%);
  border: 1px solid rgba(155,48,255,0.8);
  box-shadow: 0 0 12px rgba(122,34,212,0.65), 0 0 28px rgba(122,34,212,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
}

.auth-btn:hover {
  background: linear-gradient(180deg, #9b30ff 0%, #7a22d4 100%);
  box-shadow: 0 0 20px rgba(155,48,255,0.9), 0 0 50px rgba(155,48,255,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

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

.auth-err {
  color: #f87171;
  font-size: 11px;
  text-align: center;
  min-height: 20px;
  margin-top: 10px;
}

.auth-hint {
  color: rgba(120,85,180,0.5);
  font-size: 9.5px;
  text-align: center;
  margin-top: 16px;
  line-height: 1.85;
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.04em;
}
