:root {
  color-scheme: light;
  --teal: #0f3d4e;
  --teal-deep: #062f3a;
  --teal-soft: #2d6f72;
  --gold: #d4a24c;
  --gold-dark: #9b7420;
  --parchment: #f5ebdd;
  --paper: #fff9eb;
  --sage: #7ea896;
  --sky: #a7d0e8;
  --earth: #8b6f56;
  --ink: #102b35;
  --muted: #746d63;
  --line: rgba(155, 116, 32, .24);
  --shadow: 0 24px 65px rgba(39, 45, 38, .16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 5%, rgba(212, 162, 76, .24), transparent 27rem),
    radial-gradient(circle at 92% 82%, rgba(126, 168, 150, .28), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 22C32 8 54 40 86 20s47 10 58 5M-12 88c30-18 57 17 89-2s45 8 61-5' fill='none' stroke='%23d4a24c' stroke-opacity='.16'/%3E%3C/svg%3E");
}

header, main, footer { width: min(980px, calc(100% - 40px)); margin-inline: auto; }

header, .site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.brand img { display: block; width: 190px; max-width: 46vw; height: auto; }
.wordmark { color: var(--teal); font: 800 28px/1 Georgia, serif; letter-spacing: .12em; text-decoration: none; }
.header-link, nav a { color: var(--teal-soft); font-weight: 700; text-decoration: none; }
.header-link:hover, nav a:hover { color: var(--gold-dark); }
nav { display: flex; flex-wrap: wrap; gap: 18px; }
a { color: var(--teal-soft); }

main { position: relative; padding: 72px 0; min-height: 70vh; }
h1, h2, h3 { color: var(--teal); font-family: Georgia, "Times New Roman", serif; line-height: 1.1; }
h1 { margin: 0 0 18px; font-size: clamp(40px, 8vw, 72px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
.lead { max-width: 760px; color: var(--earth); font: 21px/1.65 Georgia, serif; }

.card, .action-card {
  margin: 24px 0;
  padding: 30px;
  border: 1px solid rgba(212, 162, 76, .3);
  border-radius: 28px;
  background: rgba(255, 253, 246, .94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

label { display: block; margin: 15px 0 6px; color: var(--teal-deep); font-weight: 750; }
input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8c9ab;
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 162, 76, .16); }
button, .button-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(15, 61, 78, .2);
  color: #fff;
  cursor: pointer;
  font: 750 15px/1.2 inherit;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
button:hover, .button-link:hover { background: var(--teal-soft); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .55; transform: none; }

.auth-page { display: flex; min-height: 100vh; flex-direction: column; }
.auth-main { display: grid; flex: 1; min-height: auto; place-items: center; padding-block: 54px 72px; }
.action-card { width: min(620px, 100%); margin: 0; padding: clamp(28px, 7vw, 56px); text-align: center; }
.action-card h1 { margin: 8px 0 16px; font-size: clamp(36px, 7vw, 54px); }
.action-card--form { text-align: left; }
.action-card--form .action-icon, .action-card--form .eyebrow, .action-card--form h1, .action-card--form .action-copy { text-align: center; }
.action-copy { max-width: 480px; margin: 0 auto; color: var(--muted); font: 17px/1.7 Georgia, serif; }
.eyebrow { margin: 18px 0 0; color: var(--gold-dark); font-size: 12px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.action-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--teal), var(--teal-soft));
  box-shadow: 0 14px 30px rgba(15, 61, 78, .24);
  color: var(--paper);
  font-size: 32px;
  font-weight: 800;
}
.action-icon--success { background: linear-gradient(145deg, #467b36, var(--sage)); }
.action-icon--error { background: linear-gradient(145deg, #9d493f, #c27766); }
.spinner { width: 25px; height: 25px; border: 3px solid rgba(255,255,255,.34); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice { margin-top: 18px; padding: 13px 15px; border-radius: 13px; background: #f3e5c6; color: var(--earth); }
.notice--success { background: #e7f1e9; color: #38652e; }
.notice--error, .danger { color: #8a2f26; }
.notice--error { background: #f8e6e2; }
.hidden { display: none; }

footer, .site-footer { position: relative; padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 680px) {
  header, .site-header { align-items: flex-start; flex-direction: column; }
  nav { gap: 10px 16px; }
  main { padding: 44px 0; }
  .site-header { align-items: center; flex-direction: row; }
  .action-card { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
