/* Standalone styles for /login. The page used to link frontpage.css, which never defined the
   auth classes, so the form rendered unstyled. Palette matches the public front page. */
:root {
  --bg: #0a0000;
  --text: #e6d9c4;
  --muted: #947f59;
  --accent: #e89259;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --field: rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Two soft glows keep the near-black background from reading as a flat void. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 0%, rgba(232, 146, 89, 0.16), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(192, 57, 43, 0.14), transparent 50%);
  pointer-events: none;
}

.single-page {
  min-height: 100vh;
  min-height: 100dvh;
  width: min(100%, 26rem);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.band-name {
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

.auth-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 2rem 1.75rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.auth-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.auth-intro {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-card label {
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-card input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input::placeholder {
  color: rgba(148, 127, 89, 0.6);
}

.auth-card input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 146, 89, 0.22);
}

.auth-checkbox {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}

/* Chrome paints autofilled fields a solid pale blue; the inset shadow overrides it. */
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  box-shadow: inset 0 0 0 100px #1a1210;
  caret-color: var(--text);
}

.auth-card button {
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #2a1408;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.auth-card button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.auth-card button:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-card button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.auth-card button:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Reserve the line so validation text never shifts the button down. */
.auth-message {
  min-height: 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  text-align: center;
}

.auth-message.success {
  color: #7de8b2;
}

.auth-message.error {
  color: #ff9e9e;
}

.auth-back {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.auth-back:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 400px) {
  .auth-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card input,
  .auth-card button,
  .auth-back {
    transition: none;
  }
}
