/* ============================================
   login.css — Login page styles
   ============================================ */

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

:root {
  --ink:       #0f0e0d;
  --paper:     #f5f0e8;
  --cream:     #ede7d9;
  --gold:      #c9a84c;
  --gold-deep: #9e7a28;
  --rust:      #b84c2b;
  --muted:     #7a7060;
  --border:    rgba(15, 14, 13, 0.12);
  --radius:    4px;
}

html, body {
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Left panel ── */
.panel-left {
  position: relative;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  overflow: hidden;
}

.panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(201, 168, 76, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 10%, rgba(184, 76, 43, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--paper);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.brand span { color: var(--gold); }

.panel-quote {
  position: relative;
  z-index: 1;
}

.panel-quote blockquote {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.3;
  color: var(--paper);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.panel-quote cite {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
}

.panel-ornament {
  position: absolute;
  bottom: -4rem;
  right: -4rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.panel-ornament::after {
  content: '';
  position: absolute;
  inset: 2rem;
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: 50%;
}

/* ── Right panel ── */
.panel-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-card header {
  margin-bottom: 2.5rem;
}

.login-card h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.login-card .subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Alerts ── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.alert-error {
  background: #fdf2ef;
  border: 1px solid rgba(184, 76, 43, 0.25);
  color: var(--rust);
}

.alert-success {
  background: #f0faf4;
  border: 1px solid rgba(34, 139, 70, 0.2);
  color: #1a6b3a;
}

/* ── Google button ── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-google:hover {
  border-color: rgba(15, 14, 13, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-google:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

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

.divider span {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Terms ── */
.terms {
  margin-top: 2rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.terms a {
  color: var(--gold-deep);
  text-decoration: none;
}

.terms a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 700px) {
  body { grid-template-columns: 1fr; }
  .panel-left { display: none; }
  .panel-right { padding: 2rem 1.25rem; }
}
