:root {
  --navy:   #0f1f3d;
  --gold:   #c9a84c;
  --gold-d: #a8882e;
  --bg:     #f5f3ef;
  --white:  #ffffff;
  --text:   #1a1a2e;
  --muted:  #6b7280;
  --border: #e2ddd6;
  --error:  #dc2626;
  --radius: 8px;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, sans-serif;
}

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

html, body {
  height: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
}

/* ── Split layout ──────────────────────────────────────────────────────────── */
.auth-wrap {
  display: flex;
  min-height: 100vh;
}

/* Left: brand panel */
.auth-brand {
  width: 420px;
  flex-shrink: 0;
  background: var(--navy);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.auth-tagline {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.auth-features {
  list-style: none;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  line-height: 1.5;
}

.auth-features li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--gold);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230f1f3d'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.auth-brand-footer {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* Right: form panel */
.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--white);
}

.auth-box {
  width: 100%;
  max-width: 400px;
}

.auth-box h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* Alert */
.auth-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--error);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}

.auth-alert--success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.form-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-field input:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(15,31,61,0.08);
}

.form-field input::placeholder { color: #b0a898; }

/* Checkbox row */
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}

/* Submit button */
.btn-auth {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
  margin-top: 4px;
}

.btn-auth:hover { background: #162d57; }

/* Links */
.auth-links {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-links a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.auth-links a:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--border);
  font-size: 12px;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.trial-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: var(--gold-d);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-brand {
    display: none;
  }
  .auth-panel {
    padding: 40px 20px;
    background: var(--bg);
  }
  .auth-box {
    background: var(--white);
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  }
}
