:root {
  --bg: #faf5f6;
  --bg-soft: #fff9fa;
  --rose-50: #fff0f3;
  --rose-100: #ffd6e0;
  --rose-200: #f7b0c2;
  --rose-300: #ef8aa6;
  --rose-400: #e06b8a;
  --rose-500: #c94d6e;
  --rose-600: #a83a58;
  --ink: #2a1820;
  --ink-soft: #7d5a66;
  --ink-mute: #a88a94;
  --line: rgba(168, 58, 88, 0.12);
  --glass: rgba(255, 255, 255, 0.55);
  --shadow: 0 20px 50px rgba(168, 58, 88, 0.08);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Ambient */
.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 480px;
  height: 480px;
  background: #f5c4d0;
  top: -160px;
  right: -100px;
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}

.glow-2 {
  width: 360px;
  height: 360px;
  background: #efb0c4;
  bottom: 8%;
  left: -120px;
  opacity: 0.35;
  animation: drift 26s ease-in-out infinite alternate-reverse;
}

.glow-3 {
  width: 220px;
  height: 220px;
  background: #f8d0dc;
  top: 42%;
  right: 18%;
  opacity: 0.28;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -20px) scale(1.06); }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.4s; }

/* ========== LOGIN ========== */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px 40px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: cardIn 0.7s var(--ease) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-heart {
  font-size: 28px;
  color: var(--rose-400);
  margin-bottom: 14px;
  animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.login-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-400);
  font-weight: 500;
  margin-bottom: 10px;
}

.login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--rose-600);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.login-hint {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 28px;
}

.login-form .field {
  margin-bottom: 4px;
}

.login-form input {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid rgba(224, 107, 138, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-family: inherit;
  text-align: center;
  letter-spacing: 4px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.login-form input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(224, 107, 138, 0.14);
}

.login-form input::placeholder {
  color: var(--ink-mute);
  letter-spacing: 0;
}

.login-error {
  min-height: 22px;
  font-size: 13px;
  color: var(--rose-500);
  margin: 8px 0 6px;
}

.login-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-500));
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(201, 77, 110, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, opacity 0.2s;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(201, 77, 110, 0.4);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========== MAIN PAGE ========== */
.page {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px 90px;
}

/* Top */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  color: var(--rose-400);
  font-size: 14px;
}

.brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--rose-600);
}

.top-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Hero */
.hero {
  text-align: center;
  padding: 64px 0 56px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-400);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(52px, 12vw, 92px);
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero-title span {
  display: block;
}

.hero-title .italic {
  font-style: italic;
  color: var(--rose-500);
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 320px;
  margin: 0 auto 28px;
}

.hero-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--rose-300), var(--rose-100));
  margin: 0 auto;
  border-radius: 2px;
}

/* Letter */
.letter {
  margin: 20px 0 48px;
}

.letter-inner {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}

.letter-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(168, 58, 88, 0.1);
}

.letter-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-300);
  margin-bottom: 20px;
  font-weight: 500;
}

.letter-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3.8vw, 26px);
  line-height: 1.7;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 24px;
}

.letter-sign {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--rose-500);
}

/* Moments */
.moments {
  padding: 20px 0 40px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  margin-bottom: 32px;
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.moment-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 30px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.3s;
}

.moment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(168, 58, 88, 0.1);
  border-color: rgba(224, 107, 138, 0.25);
}

.moment-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rose-300);
  margin-bottom: 16px;
  font-weight: 500;
}

.moment-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.moment-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 300;
}

/* Quote strip */
.quote-strip {
  margin: 36px 0;
  padding: 40px 28px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 214, 224, 0.35), rgba(247, 176, 194, 0.18));
  border-radius: 24px;
  border: 1px solid var(--line);
}

.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 3.5vw, 24px);
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Closing */
.closing {
  margin: 48px 0 36px;
}

.closing-inner {
  text-align: center;
  padding: 56px 28px;
  background: linear-gradient(160deg, rgba(255, 240, 243, 0.9), rgba(255, 214, 224, 0.4));
  border-radius: 28px;
  border: 1px solid var(--line);
}

.closing-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-400);
  margin-bottom: 14px;
  font-weight: 500;
}

.closing-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5.5vw, 40px);
  font-style: italic;
  color: var(--rose-600);
  margin-bottom: 10px;
}

.closing-sub {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 300;
}

/* Footer */
.foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-400);
}

.sep { opacity: 0.45; }

/* Responsive */
@media (max-width: 720px) {
  .page { padding: 0 20px 70px; }
  .hero { padding: 48px 0 40px; }
  .moments-grid { grid-template-columns: 1fr; gap: 14px; }
  .letter-inner { padding: 36px 24px; }
  .login-card { padding: 40px 28px 32px; }
  .top { padding: 24px 0 8px; }
}
