:root {
  --primary:  #c4922a;
  --dark:     #0f1117;
  --surface:  #1a1e27;
  --surface2: #22273a;
  --light:    #e8e8e8;
  --muted:    #8a8f9a;
  --border:   rgba(255, 255, 255, 0.08);
  --radius:   10px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark);
  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(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-container h1,
.register-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--light);
  text-align: center;
  margin-bottom: 6px;
}

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

/* ── Form controls ──────────────────────────────────────────────────────────── */
.form-control {
  height: 50px;
  font-size: 16px;
  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(--primary);
  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: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── Submit button ──────────────────────────────────────────────────────────── */
button[type="submit"] {
  height: 50px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.05em;
  background: var(--primary);
  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: #a8791f;
  box-shadow: 0 6px 20px rgba(196, 146, 42, 0.4);
}

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

a:hover {
  color: #e0b060;
}

/* ── 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(--primary);
}