:root {
  --ivory: #f7f2e9;
  --paper: #fffdf8;
  --ink: #26352f;
  --muted: #6d756f;
  --sage: #849c87;
  --sage-deep: #607765;
  --blush: #d8a18f;
  --gold: #b58b4a;
  --line: rgba(38, 53, 47, 0.16);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: .28;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

.login-page { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); min-height: 100vh; min-height: 100svh; }
.wedding-panel { position: relative; display: grid; place-items: center; overflow: hidden; padding: 70px 36px; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.95), rgba(255,255,255,.26) 38%, transparent 67%), linear-gradient(135deg, #e9dfd1, #fbf7ef 49%, #dfe9df); }
.wedding-panel::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(181,139,74,.36); pointer-events: none; }
.wedding-panel-inner { position: relative; z-index: 2; width: min(720px, 100%); text-align: center; }
.eyebrow { margin: 0 0 18px; color: var(--sage-deep); text-transform: uppercase; letter-spacing: .28em; font-size: 11px; font-weight: 800; }
.rings { position: relative; width: 70px; height: 34px; margin: 0 auto 18px; }
.rings i { position: absolute; top: 0; width: 31px; height: 31px; border: 1px solid var(--gold); border-radius: 50%; }
.rings i:first-child { left: 10px; }
.rings i:last-child { right: 10px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(60px, 8vw, 108px); line-height: .92; letter-spacing: -.055em; }
h1 span { display: inline-block; color: var(--blush); font-size: .72em; font-style: italic; transform: translateY(-.1em); }
.date { margin: 28px 0 0; color: var(--muted); font: italic 19px/1.4 Georgia, serif; }
.fine-line { width: 80px; height: 1px; margin: 28px auto; background: var(--gold); }
.welcome-copy { margin: 0; color: var(--muted); font: italic 17px/1.7 Georgia, serif; }
.botanical { position: absolute; z-index: 1; width: 330px; height: 560px; opacity: .35; background-repeat: no-repeat; background-size: contain; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 520' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23607765' stroke-width='1.2'%3E%3Cpath d='M42 505C62 397 99 329 143 255S221 100 229 12'/%3E%3Cpath d='M82 407c-53-2-72-33-73-63 39 2 66 20 73 63Zm30-67c52-12 66-46 61-75-38 9-60 34-61 75Zm25-61c-48-15-56-50-47-78 35 11 53 38 47 78Zm25-59c48-17 55-53 44-80-34 13-51 41-44 80Zm24-62c-38-25-37-59-20-81 28 19 37 48 20 81Zm19-58c39-26 38-62 20-84-28 20-36 50-20 84Z' fill='%23849c87' fill-opacity='.12'/%3E%3C/g%3E%3C/svg%3E"); }
.botanical-left { left: -76px; bottom: -100px; transform: rotate(-8deg); }
.botanical-right { right: -84px; top: -74px; transform: scaleX(-1) rotate(-14deg); }

.login-panel { display: grid; place-items: center; padding: 58px clamp(30px, 6vw, 90px); background: var(--paper); }
.login-card { width: min(460px, 100%); }
.heart { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 27px; border: 1px solid rgba(181,139,74,.48); border-radius: 50%; color: var(--blush); background: #fbf6ed; font-size: 18px; }
.login-card .eyebrow { margin-bottom: 10px; }
h2 { margin: 0; font-size: clamp(42px, 5vw, 60px); line-height: 1.04; letter-spacing: -.04em; }
.login-copy { max-width: 420px; margin: 20px 0 30px; color: var(--muted); font-size: 16px; }
.error-message { margin: 0 0 22px; padding: 12px 15px; border-left: 3px solid #b76d5d; color: #814638; background: #fbede7; font-size: 14px; }
.error-message[hidden] { display: none; }
form > label { display: block; margin: 18px 0 7px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; }
input { width: 100%; min-height: 54px; padding: 0 17px; border: 1px solid rgba(38,53,47,.24); border-radius: 2px; color: var(--ink); background: white; font: inherit; font-size: 16px; outline: none; }
input:focus { border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(132,156,135,.16); }
.password-field { position: relative; }
.password-field input { padding-right: 92px; }
.password-field button { position: absolute; right: 14px; top: 50%; padding: 7px 3px; border: 0; color: var(--sage-deep); background: transparent; font: inherit; font-size: 12px; font-weight: 700; transform: translateY(-50%); cursor: pointer; }
.password-field button:focus-visible { outline: 2px solid rgba(181,139,74,.65); outline-offset: 2px; }
.login-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; margin-top: 28px; padding: 0 22px; border: 0; border-radius: 100px; color: white; background: var(--ink); box-shadow: 0 12px 30px rgba(38,53,47,.2); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.login-button:hover { background: var(--sage-deep); transform: translateY(-2px); }
.login-button:focus-visible { outline: 3px solid rgba(181,139,74,.65); outline-offset: 3px; }
.login-button span { font: 300 24px/1 Georgia, serif; }
.privacy-note { margin: 22px 0 0; color: var(--muted); font-size: 12px; }
.privacy-note span { margin-right: 7px; color: var(--sage); }

@media (max-width: 880px) {
  .login-page { grid-template-columns: 1fr; }
  .wedding-panel { min-height: 46svh; padding: 76px 24px 64px; }
  .wedding-panel::after { inset: 13px; }
  .welcome-copy { display: none; }
  .fine-line { margin-bottom: 0; }
  .login-panel { padding: 60px 28px 70px; }
}
@media (max-width: 520px) {
  .wedding-panel { min-height: 390px; }
  h1 { font-size: clamp(54px, 17vw, 76px); }
  .botanical { width: 230px; }
  .login-panel { align-items: start; padding: 52px 24px 64px; }
  .heart { width: 52px; height: 52px; margin-bottom: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
