.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem 3rem;
  background:
    radial-gradient(ellipse 70% 50% at 85% 5%, rgba(255, 176, 32, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(110, 168, 255, 0.12), transparent 50%),
    #07080d;
  font-family: "JetBrains Mono", monospace;
  color: #f3efe6;
}

.auth-logo {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  z-index: 2;
  color: #f3efe6;
  text-decoration: none;
}

.auth-logo span { color: #ffb020; }

.auth-tg {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  z-index: 2;
  color: #ffb020;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-card {
  width: min(100%, 420px);
  background: rgba(16, 18, 28, 0.88);
  border: 1px solid rgba(255, 176, 32, 0.22);
  border-radius: 18px;
  padding: 1.45rem;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1.3rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 176, 32, 0.18);
  border-radius: 999px;
}

.auth-tab {
  border: none;
  background: transparent;
  color: #8b8798;
  padding: 0.55rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.auth-tab.active {
  background: #ffb020;
  color: #1a1200;
}

.auth-form h1 {
  font-family: "Syne", sans-serif;
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: #f3efe6;
}

.auth-sub {
  color: #8b8798;
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
}

.auth-form label {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.auth-form label span {
  font-size: 0.72rem;
  color: #8b8798;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 176, 32, 0.2);
  border-radius: 10px;
  color: #f3efe6;
  padding: 0.75rem 0.85rem;
  font: inherit;
  outline: none;
}

.auth-form input:focus {
  border-color: #ffb020;
  box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.2);
}

.auth-form input::placeholder { color: #5c5868; }

.auth-error {
  color: #ff5d7a;
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}

.auth-form .btn,
.auth-form button[type="submit"] {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  background: #ffb020;
  color: #1a1200;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.auth-form button[type="submit"]:hover {
  filter: brightness(1.05);
}

.auth-form[hidden],
.auth-error[hidden] {
  display: none !important;
}
