:root {
  --bg: #0d1425;
  --surface: #131d33;
  --line: #2b395d;
  --text: #e5ebf8;
  --muted: #9eb0d4;
  --accent: #c69b43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-shell {
  width: min(420px, 92vw);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 24px;
}

h1 {
  margin: 0 0 8px;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 14px;
}

input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1830;
  color: var(--text);
  padding: 0 10px;
}

button {
  margin-top: 6px;
  min-height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #1f1600;
  font-weight: 600;
  cursor: pointer;
}

.error {
  min-height: 18px;
  margin: 4px 0 0;
  color: #ff9c9c;
  font-size: 13px;
}

.footer-text {
  margin-top: 14px;
  font-size: 14px;
}

a {
  color: #f2cf8a;
}

.agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
  cursor: pointer;
}

.agreement-label input[type="checkbox"] {
  min-width: 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent);
  border: 1px solid var(--line);
  background: #0f1830;
  border-radius: 3px;
  flex-shrink: 0;
}

.agreement-label strong {
  color: var(--text);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.success {
  min-height: 18px;
  margin: 4px 0 0;
  color: #7ee8a2;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.forgot-section {
  margin-top: 4px;
}

.forgot-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.reset-waiting {
  text-align: center;
  padding: 20px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.confirm-screen {
  text-align: center;
  padding: 8px 0;
}

.confirm-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.confirm-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.confirm-body {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.confirm-body strong {
  color: var(--text);
}

.confirm-login-btn {
  display: inline-block;
  width: 100%;
  min-height: 40px;
  line-height: 40px;
  background: var(--accent);
  color: #1f1600;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 14px;
}

.confirm-note {
  font-size: 13px;
  margin: 0 0 6px;
}
