/* MX Fantasy auth screens — same language as Pit Pass */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap");

.auth-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  font-family: "Barlow", system-ui, sans-serif;
  color: #e2e8f0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(251, 191, 36, 0.08), transparent 50%),
    linear-gradient(165deg, #020617 0%, #0f172a 45%, #020617 100%);
}

.auth-shell {
  position: relative;
  width: 100%;
  max-width: 26rem;
  border-radius: 1.25rem;
  padding: 1.6rem 1.45rem 1.35rem;
  background: linear-gradient(165deg, #0f172a 0%, #111827 55%, #0b1220 100%);
  border: 1px solid rgba(34, 211, 238, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(34, 211, 238, 0.07);
  overflow: hidden;
  animation: auth-in 0.4s ease-out;
}

@keyframes auth-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-glow {
  position: absolute;
  inset: -45% -25% auto;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.22), transparent 65%);
  pointer-events: none;
}

.auth-brand {
  position: relative;
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(34, 211, 238, 0.25), transparent 70%);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.auth-logo img {
  height: 2.75rem;
  width: auto;
  filter: brightness(1.1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.auth-title {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #ecfeff;
  text-transform: uppercase;
}

.auth-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.auth-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbbf24;
}

.auth-flash {
  position: relative;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
}

.auth-flash--ok {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.auth-flash--err {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.auth-form {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.auth-label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.65rem;
  border: 1px solid #334155;
  background: #020617;
  color: #f8fafc;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.auth-input:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.auth-input::placeholder {
  color: #475569;
}

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

.auth-field-wrap .auth-input {
  padding-right: 2.75rem;
}

.auth-eye {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: #64748b;
  cursor: pointer;
  padding: 0;
}

.auth-eye:hover {
  color: #e2e8f0;
}

.auth-hint {
  font-size: 0.7rem;
  font-weight: 400;
  color: #64748b;
}

.auth-forgot {
  margin: -0.15rem 0 0;
  text-align: right;
  font-size: 0.8rem;
}

.auth-forgot a {
  color: #67e8f9;
  text-decoration: none;
}

.auth-forgot a:hover {
  text-decoration: underline;
}

.auth-cta {
  margin-top: 0.15rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  color: #041016;
  background: linear-gradient(135deg, #22d3ee, #34d399);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.32);
}

.auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #334155, transparent);
}

.auth-google {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  color: #1f2937;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-google:hover {
  border-color: #22d3ee;
  background: #f8fafc;
  transform: translateY(-1px);
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.2);
}

.auth-google-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.auth-foot {
  position: relative;
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

.auth-foot a {
  color: #67e8f9;
  font-weight: 600;
  text-decoration: none;
}

.auth-foot a:hover {
  text-decoration: underline;
}

.auth-email-chip {
  position: relative;
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-size: 0.82rem;
  color: #a5f3fc;
  text-align: center;
  word-break: break-all;
}
