@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --mint: #c9dfd4;
  --mint-light: #ddeee6;
  --mint-dark: #a8c9b8;
  --navy: #3d3566;
  --navy-hover: #2e2750;
  --text: #2a2a4a;
  --muted: #7a7a9a;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(61, 53, 102, 0.18);
  --error-bg: #fef2f2;
  --error-text: #b91c1c;
  --error-border: #fca5a5;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--mint);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  /* Subtle flower outline pattern in background */
  background-image:
    radial-gradient(ellipse 8px 12px at 0 0, transparent 60%, rgba(255,255,255,0.35) 61%, rgba(255,255,255,0.35) 70%, transparent 71%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' opacity='0.18'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3Cellipse cx='30' cy='18' rx='7' ry='12' transform='rotate(-20 30 18)'/%3E%3Cellipse cx='30' cy='18' rx='7' ry='12' transform='rotate(20 30 18)'/%3E%3Cellipse cx='30' cy='18' rx='7' ry='12' transform='rotate(60 30 18)'/%3E%3Cellipse cx='30' cy='18' rx='7' ry='12' transform='rotate(-60 30 18)'/%3E%3Cellipse cx='30' cy='18' rx='7' ry='12' transform='rotate(100 30 18)'/%3E%3Cellipse cx='30' cy='18' rx='7' ry='12' transform='rotate(-100 30 18)'/%3E%3Ccircle cx='30' cy='18' r='4'/%3E%3Cellipse cx='140' cy='120' rx='7' ry='12' transform='rotate(-20 140 120)'/%3E%3Cellipse cx='140' cy='120' rx='7' ry='12' transform='rotate(20 140 120)'/%3E%3Cellipse cx='140' cy='120' rx='7' ry='12' transform='rotate(60 140 120)'/%3E%3Cellipse cx='140' cy='120' rx='7' ry='12' transform='rotate(-60 140 120)'/%3E%3Cellipse cx='140' cy='120' rx='7' ry='12' transform='rotate(100 140 120)'/%3E%3Cellipse cx='140' cy='120' rx='7' ry='12' transform='rotate(-100 140 120)'/%3E%3Ccircle cx='140' cy='120' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.6);
}

.nav-brand {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-user {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Buttons ── */
.btn {
  padding: 0.48rem 1.3rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-family: 'Lora', serif;
  text-decoration: none;
  display: inline-block;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.btn-primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 2px 8px rgba(61,53,102,0.22);
}
.btn-primary:hover {
  background: var(--navy-hover);
  box-shadow: 0 4px 14px rgba(61,53,102,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover { background: rgba(61,53,102,0.07); }

.btn-full { width: 100%; text-align: center; padding: 0.72rem; }

/* ── Auth pages ── */
body.auth-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.auth-cover {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-cover .title-script {
  font-family: 'Dancing Script', cursive;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  display: block;
}

.auth-cover .subtitle {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--navy);
  border-top: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  padding: 0.35rem 1.8rem;
  margin-top: 0.6rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 2.4rem 2.2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(61,53,102,0.1), 0 1px 4px rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}

.auth-card h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.4rem;
  font-weight: 600;
}

.auth-switch {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}
.auth-switch a { color: var(--navy); font-style: normal; }

/* ── Form fields ── */
.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-size: 0.87rem;
  margin-bottom: 0.3rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.97rem;
  font-family: 'Lora', serif;
  background: rgba(255,255,255,0.8);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(61,53,102,0.1);
}
.field small { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; display: block; }

/* ── Alerts ── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
}
.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
}

/* ── Flower decoration ── */
.flower-row {
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
  opacity: 0.75;
}

.flower-row svg { width: 260px; height: auto; }

/* ── Home / dashboard ── */
.page-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 62px);
  padding: 3rem 1.5rem;
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 2.8rem 2.4rem;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(61,53,102,0.1);
  backdrop-filter: blur(8px);
  text-align: center;
}

.dashboard-card .title-script {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.scripture-block {
  margin: 1.8rem auto;
  max-width: 380px;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
}

.scripture-block cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.divider {
  width: 60px;
  height: 1.5px;
  background: var(--navy);
  margin: 1.4rem auto;
  opacity: 0.4;
}

.dashboard-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}
