:root {
  --bg: #09080b;
  --panel: #151219;
  --line: #2e2734;
  --text: #f4ede3;
  --muted: #a99faf;
  --gold: #c9a84c;
  --wine: #8d283c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(201, 168, 76, 0.13), transparent 30%),
    linear-gradient(145deg, #09080b, #130d15 55%, #08070a);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(100%, 480px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  background: rgba(21, 18, 25, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.auth-brand {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--text);
  font-family: Georgia, serif;
  letter-spacing: 0.24em;
  text-decoration: none;
}

.auth-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 22px;
  font-size: 32px;
  letter-spacing: 0;
}

.auth-copy {
  margin: -8px 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #0d0b10;
  color: var(--text);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 56px;
}

.auth-form .password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: auto;
  min-height: 0;
  height: 20px;
  border: 1px solid rgba(201, 168, 76, 0.48);
  border-radius: 999px;
  margin: 0;
  padding: 0 7px;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.auth-form .password-toggle:hover,
.auth-form .password-toggle:focus-visible {
  background: rgba(201, 168, 76, 0.2);
}

.auth-form small {
  color: var(--muted);
  line-height: 1.5;
}

.auth-form em,
.auth-errors {
  color: #ff9dad;
  font-style: normal;
}

.auth-form button {
  min-height: 46px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  margin-top: 4px;
  background: var(--gold);
  color: #09080b;
  cursor: pointer;
  font-weight: 700;
}

.auth-form .password-toggle {
  min-height: 0;
  height: 20px;
  border-radius: 999px;
  margin-top: 0;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
}

.auth-links a {
  color: var(--gold);
  font-size: 14px;
  text-decoration: none;
}

.auth-messages {
  margin-bottom: 16px;
}

.auth-messages p {
  margin: 0;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(201, 168, 76, 0.1);
}
