:root {
  --ink: #e8eef6;
  --navy: #071525;
  --card: rgba(8, 18, 32, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --blue: #3b82f6;
  --blue-deep: #1d4ed8;
  --gold: #f98818;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(4, 12, 24, 0.88) 0%, rgba(7, 24, 46, 0.72) 46%, rgba(4, 10, 18, 0.55) 100%),
    url(/ASSETS/MEDIA/IMG/Trailer1.jpeg) center/cover no-repeat fixed;
}

.auth-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 460px);
  gap: 3rem;
  align-items: center;
  padding: 4vh 7vw;
}

.auth-hero h1 {
  margin: 0.4rem 0 1rem;
  max-width: 14ch;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.auth-kicker {
  margin: 1.2rem 0 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-mark {
  width: min(280px, 70%);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.auth-hero ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: #d5e2f0;
}

.auth-hero li {
  padding-left: 1.1rem;
  position: relative;
}

.auth-hero li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

.auth-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 1.3rem;
}

.auth-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c9d6e5;
  font-weight: 700;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
}

.auth-switch button.is-on {
  background: linear-gradient(180deg, #4b93ff, var(--blue-deep));
  color: white;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.35);
}

.auth-form h2 {
  margin: 0;
  font-size: 1.7rem;
}

.auth-lead {
  margin: 0.35rem 0 1.1rem;
  color: #b7c6d6;
  font-size: 0.95rem;
}

.auth-form label {
  display: block;
  margin: 0.15rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9eb0c4;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 12, 22, 0.72);
  color: white;
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 1rem;
  outline: none;
}

.auth-form input:focus {
  border-color: #7aafff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.field-secret {
  position: relative;
}

.field-secret input {
  padding-right: 4.2rem;
}

.peek {
  position: absolute;
  top: 0.45rem;
  right: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  padding: 0.45rem 0.55rem;
}

.auth-go {
  width: 100%;
  margin-top: 0.3rem;
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #071525;
  background: linear-gradient(180deg, #ffe08a, var(--gold));
  cursor: pointer;
}

.auth-go:hover { filter: brightness(1.05); }
.auth-go:disabled { opacity: 0.65; cursor: wait; }
.auth-extra {
  display: block;
  margin: 12px auto 0;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.auth-msg {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
  font-weight: 600;
}

.auth-msg.ok {
  background: rgba(52, 211, 153, 0.14);
  color: #bbf7d0;
}

@media (max-width: 900px) {
  body { background-attachment: scroll; }
  .auth-stage {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    align-items: start;
    padding: 1.2rem 1rem 2rem;
  }
  .auth-hero h1 { max-width: none; font-size: 2rem; }
  .auth-hero ul { display: none; }
  .auth-mark { width: min(220px, 62%); }
  .auth-panel { padding: 1.1rem 1rem 1.25rem; border-radius: 22px; }
}

@media (max-width: 420px) {
  .auth-hero h1 { font-size: 1.7rem; }
  .auth-form h2 { font-size: 1.4rem; }
}
