/* ── Fonts & Reset ───────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Jost:wght@300;400;500;600&display=swap');

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

:root {
  --bg:        #f0f0ee;
  --panel:     #e8e8e6;
  --surface:   #ffffff;
  --border:    #d9d9d7;
  --border-lt: #e4e4e2;
  --text:      #1a1a1a;
  --sub:       #6b6b6b;
  --label:     #9c9c9c;
  --err:       #c0392b;
}

html, body {
  min-height: 100vh;
  font-family: 'Jost', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── Page layout — centered like onboarding ─────────────────────────────── */
.login-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 52px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.login-logo {
  width: 160px;
  height: auto;
  border-radius: 10px;
}

.login-tagline {
  font-size: 12px;
  font-weight: 300;
  color: var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.login-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.login-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 13px;
  font-weight: 300;
  color: var(--sub);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Error ───────────────────────────────────────────────────────────────── */
.login-error {
  width: 100%;
  background: #fdf0f0;
  border: 1px solid #f5c6c6;
  color: var(--err);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}

/* ── Google button wrapper ───────────────────────────────────────────────── */
.google-btn-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.google-signin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  justify-content: center;
  letter-spacing: 0.01em;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.google-signin-link:hover {
  border-color: #bbb;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.login-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 20px;
  color: var(--label);
  font-size: 11px;
}

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

/* ── Terms ───────────────────────────────────────────────────────────────── */
.login-terms {
  font-size: 11px;
  font-weight: 300;
  color: var(--label);
  text-align: center;
  line-height: 1.7;
  margin-top: 8px;
}

.login-terms a {
  color: var(--sub);
  text-decoration: underline;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
