:root {
  color-scheme: dark;
  --bg: #161214;
  --diamonds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='79'%3E%3Cpolygon points='27,0 54,39.5 27,79 0,39.5' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  --card-top: #2b1315;
  --card-bottom: #160a0b;
  --card-border: #a89a4f;
  --text: #f1e4e2;
  --text-muted: #cbb9b6;
  --text-dim: #8a7876;
  --heading: #f3e2df;
  --gold: #ecd48a;
  --gold-bottom: #b8933f;
  --gold-border: #6b5f2c;
  --gold-glow: rgba(212, 175, 90, 0.4);
  --gold-link: #c9a94e;
  --button-text: #2a1608;
  --divider: #3a2224;
  --field-fill: #1c1012;
  --field-border: #4a3336;
  --success: #7fae7a;
  --error: #d98474;
}

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

html {
  min-height: 100%;
  background-color: var(--bg);
  background:
    linear-gradient(180deg, rgba(69, 17, 21, 0.47), transparent 220px) no-repeat,
    radial-gradient(ellipse 85% 50% at 50% 55%, rgba(120, 24, 34, 0.4), transparent 72%) fixed,
    var(--diamonds) fixed,
    var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

a {
  color: var(--gold-link);
}

a:hover {
  color: var(--gold);
}

.brand {
  margin: 0 0 24px;
  font-family: "Berkshire Swash", Georgia, serif;
  font-weight: 400;
  font-size: 56px;
  line-height: 1.1;
  color: var(--heading);
  text-decoration: none;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.brand:hover {
  color: var(--heading);
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 28px;
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.card--wide {
  max-width: 720px;
}

h1 {
  margin: 0 0 12px;
  font-family: "Berkshire Swash", Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.25;
  color: var(--heading);
}

h2 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
}

p {
  margin: 0 0 16px;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 13px;
}

.divider {
  height: 1px;
  margin: 24px 0 20px;
  border: 0;
  background: var(--divider);
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 0 20px;
  border-radius: 50%;
  background: var(--success);
  color: #13210f;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(127, 174, 122, 0.35);
}

form {
  margin: 8px 0 0;
}

label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  color: #e4d6d3;
}

input[type="password"],
input[type="text"],
input[type="email"] {
  width: 100%;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field-fill);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s;
}

input::placeholder {
  color: var(--text-dim);
}

input:focus {
  border-color: var(--gold-link);
}

.button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold), var(--gold-bottom));
  box-shadow: 0 4px 16px var(--gold-glow);
  color: var(--button-text);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
}

.button:hover {
  filter: brightness(1.06);
  color: var(--button-text);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  filter: grayscale(0.4) brightness(0.8);
  cursor: default;
}

.button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 15px;
}

.notice--success {
  border-color: rgba(127, 174, 122, 0.5);
  background: rgba(127, 174, 122, 0.12);
  color: var(--success);
}

.notice--error {
  border-color: rgba(201, 106, 90, 0.5);
  background: rgba(201, 106, 90, 0.12);
  color: var(--error);
}

.signature {
  margin: 0;
  color: var(--text-muted);
}

.signature span {
  color: var(--gold);
}

.footer {
  margin: 20px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--text-dim);
}

.footer a {
  color: var(--text-dim);
}

@media (max-width: 420px) {
  .card {
    padding: 26px 20px 22px;
  }

  h1 {
    font-size: 26px;
  }

  .brand {
    font-size: 48px;
  }
}

.card--wide p > strong:only-child {
  display: block;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
}
