:root {
  --ink: #060606;
  --gold: #c4922a;
  --gold-2: #a0522d;
  --gold-hover: #d4a535;
  --muted: #c4c4c4;
  --panel: rgba(10, 10, 10, 0.95);
  --card: #0d0d0d;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --primary: var(--gold);
  --dark: var(--ink);
  --surface: var(--card);
  --surface2: #151515;
  --light: #e0e0e0;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
  background-color: var(--ink);
  color: var(--light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ── Shared container base ──────────────────────────────────────────────────── */
.login-container,
.register-container {
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-container h1,
.register-container h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 6px;
}

.login-container h1::after,
.register-container h1::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(45deg, var(--gold), var(--gold-2));
  margin: 8px auto 28px;
  border-radius: 2px;
}

/* ── Form controls ──────────────────────────────────────────────────────────── */
.form-control {
  height: 50px;
  font-size: 16px;
  font-weight: 300;
  background: var(--surface2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--light);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control::placeholder {
  color: var(--muted);
}

.form-control:focus {
  background: var(--surface2);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 146, 42, 0.18);
  color: var(--light);
  outline: none;
}

/* Labels */
label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── Submit button ──────────────────────────────────────────────────────────── */
button[type="submit"] {
  height: 50px;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.05em;
  background: var(--gold);
  border: none;
  border-radius: 8px;
  color: #fff;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(196, 146, 42, 0.25);
}

button[type="submit"]:hover {
  background: var(--gold-2);
  box-shadow: 0 6px 20px rgba(196, 146, 42, 0.4);
}

/* ── Helper links (forgot password, register, etc.) ─────────────────────────── */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Error / helptext messages ──────────────────────────────────────────────── */
.errorlist,
.text-danger {
  color: #e05c5c !important;
  font-size: 0.85rem;
  margin-top: 4px;
  list-style: none;
  padding: 0;
}

.helptext,
.form-text {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Divider ────────────────────────────────────────────────────────────────── */
hr {
  border-color: var(--border);
  margin: 24px 0;
}

/* ── Alert overrides ────────────────────────────────────────────────────────── */
.alert {
  border-radius: 8px;
  font-size: 0.9rem;
}

.alert-danger {
  background: rgba(224, 92, 92, 0.12);
  border-color: rgba(224, 92, 92, 0.3);
  color: #e05c5c;
}

.alert-success {
  background: rgba(196, 146, 42, 0.1);
  border-color: rgba(196, 146, 42, 0.3);
  color: var(--gold);
}
