:root {
  --bg: #0d0d0e;
  --bg-elev: #16161a;
  --bg-card: #1c1c20;
  --border: #2a2a30;
  --text: #ece9e2;
  --muted: #8a857a;
  --accent: #c9a84c;
  --accent-soft: rgba(201, 168, 76, 0.15);
  --error: #d77;
  --green: #6ba87a;
  --serif: 'Iowan Old Style', 'Apple Garamond', 'Baskerville', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
nav {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo .dot { color: var(--accent); }
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}
h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.sub {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 15px;
}
.field {
  margin-bottom: 18px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
input:focus {
  border-color: var(--accent);
}
.helper {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
button.btn {
  width: 100%;
  padding: 13px 18px;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: transform 0.1s, box-shadow 0.1s, opacity 0.15s;
}
button.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}
button.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.error {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(215, 119, 119, 0.1);
  border-left: 3px solid var(--error);
  color: var(--error);
  border-radius: 4px;
  font-size: 14px;
}
.success {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(107, 168, 122, 0.12);
  border-left: 3px solid var(--green);
  color: #c5dcc9;
  border-radius: 4px;
  font-size: 14px;
}
.legal {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  text-align: center;
}
.alt-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.alt-link a { color: var(--accent); }
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 12px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
