@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --rose: #c06080;
  --rose-light: #e88099;
  --rose-dark: #9a4060;
  --blush: #fdf0f4;
  --cream: #fdf8f5;
  --text: #2d1f27;
  --text-muted: #9b7080;
  --border: #f0dce4;
  --white: #ffffff;
  --green: #2a8a5a;
  --shadow: 0 8px 40px rgba(192,96,128,0.12);
  --shadow-sm: 0 2px 16px rgba(192,96,128,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--cream); line-height: 1.6; }

a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-dark); }

.serif { font-family: 'Playfair Display', serif; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,248,245,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.navbar-brand { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--rose); letter-spacing: 1px; }
.navbar-brand span { color: var(--text-muted); font-size: 11px; font-family: 'DM Sans', sans-serif; display: block; letter-spacing: 3px; font-weight: 300; }
.navbar-links { display: flex; gap: 8px; align-items: center; }
.nav-link { padding: 8px 18px; border-radius: 50px; font-size: 14px; font-weight: 400; color: var(--text-muted); transition: all .2s; }
.nav-link:hover { color: var(--rose); background: var(--blush); }
.btn-nav { padding: 9px 24px; background: var(--rose); color: white; border-radius: 50px; font-size: 14px; font-weight: 500; transition: all .25s; box-shadow: 0 2px 12px rgba(192,96,128,0.3); }
.btn-nav:hover { background: var(--rose-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(192,96,128,0.4); color: white; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 32px; border-radius: 50px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all .25s; border: none; font-family: 'DM Sans', sans-serif; }
.btn-primary { background: linear-gradient(135deg, var(--rose), var(--rose-light)); color: white; box-shadow: 0 4px 20px rgba(192,96,128,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(192,96,128,0.45); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--rose); color: var(--rose); background: var(--blush); }
.btn-lg { padding: 16px 44px; font-size: 16px; }
.btn-full { width: 100%; }

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: 12px; font-family: 'DM Sans', sans-serif; font-size: 15px;
  background: var(--white); color: var(--text); outline: none; transition: all .2s;
}
.form-input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(192,96,128,.08); }
.form-input::placeholder { color: #c4a0b0; }
.form-error { font-size: 13px; color: #d04040; margin-top: 6px; }

/* ── Auth Pages ── */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual {
  background: linear-gradient(160deg, #f8d8e8 0%, #fde0ec 40%, #fff0f5 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px; position: relative; overflow: hidden;
}
.auth-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(192,96,128,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(232,128,153,.1) 0%, transparent 60%);
}
.auth-visual-content { position: relative; z-index: 1; text-align: center; }
.auth-form-side { display: flex; flex-direction: column; justify-content: center; padding: 60px 70px; }
.auth-card { max-width: 420px; width: 100%; margin: auto; }
.auth-divider { text-align: center; margin: 22px 0; color: var(--text-muted); font-size: 13px; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ── Alert ── */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.alert-error { background: #fff0f0; border: 1px solid #fcc; color: #c03030; }
.alert-success { background: #f0fff4; border: 1px solid #9de; color: #1a7a3a; }

/* ── Loading ── */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 40px 24px; }
  .navbar { padding: 0 20px; }
  .navbar-links .nav-link { display: none; }
}
