@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");

body.login-page {
  --login-ink: #17251f;
  --login-muted: #66736d;
  --login-green: #103d35;
  --login-teal: #0f887d;
  --login-gold: #e9bd64;
  --login-rust: #c95b34;
  --login-paper: #fffdf9;
  --login-line: rgba(23, 37, 31, .14);
  min-height: 100svh;
  margin: 0;
  padding: 108px 0 calc(190px + var(--safe-bottom, 0px));
  overflow-x: hidden;
  color: var(--login-ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(60% 54% at -8% -4%, rgba(201, 91, 52, .16), transparent 68%),
    radial-gradient(52% 46% at 108% 2%, rgba(15, 136, 125, .15), transparent 70%),
    linear-gradient(180deg, #faf6ed 0%, #f1e9dc 100%);
}

body.login-page *,
body.login-page *::before,
body.login-page *::after { box-sizing: border-box; }

body.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23,37,31,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,37,31,.032) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 12%, #000, transparent 78%);
}

.login-main {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(23, 37, 31, .12);
  border-radius: 32px;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 30px 70px rgba(30, 39, 34, .16);
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  padding: 36px clamp(32px, 5vw, 62px) 42px;
  color: #fff;
  background:
    radial-gradient(circle at 96% 4%, rgba(233,189,100,.24), transparent 31%),
    radial-gradient(circle at 0 100%, rgba(15,136,125,.48), transparent 40%),
    linear-gradient(145deg, #0c2924 0%, #123d35 56%, #102e29 100%);
}

.login-story::before,
.login-story::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(233,189,100,.14);
  border-radius: 50%;
}

.login-story::before {
  right: -130px;
  bottom: -130px;
  width: 390px;
  height: 390px;
  box-shadow: 0 0 0 48px rgba(233,189,100,.025), 0 0 0 96px rgba(233,189,100,.018);
}

.login-story::after {
  top: 112px;
  right: 46px;
  width: 74px;
  height: 74px;
  border-color: rgba(255,255,255,.07);
  box-shadow: 0 0 0 18px rgba(255,255,255,.018);
}

.login-back,
.login-story-copy,
.login-quote { position: relative; z-index: 1; }

.login-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.72);
  font-size: .83rem;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.login-back:hover { color: #fff; transform: translateX(-3px); }

.login-story-copy { margin: 44px 0 36px; }

.login-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: #9fddd2;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-story h1 {
  max-width: 9ch;
  margin: 0 0 18px;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .97;
  text-wrap: balance;
}

.login-story-copy > p {
  max-width: 52ch;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .97rem;
  line-height: 1.72;
}

.login-benefits {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.login-benefits span {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 700;
}

.login-benefits i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  color: var(--login-gold);
  background: rgba(255,255,255,.06);
  font-size: .64rem;
  font-style: normal;
}

.login-quote {
  max-width: 390px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  background: rgba(3,18,15,.23);
  backdrop-filter: blur(10px);
}

.login-quote > span {
  display: block;
  height: 22px;
  color: var(--login-gold);
  font: 700 2.6rem/1 "Fraunces", Georgia, serif;
}

.login-quote p {
  margin: 4px 0 9px;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.login-quote cite {
  color: #afd1ca;
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px clamp(34px, 5vw, 66px);
}

.login-form-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-lock {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15,136,125,.22);
  border-radius: 15px;
  color: #0d7167;
  background: rgba(15,136,125,.09);
}

.login-lock svg { width: 23px; height: 23px; fill: currentColor; }
.login-form-head .login-eyebrow { margin-bottom: 2px; color: var(--login-rust); }

.login-form-head h2 {
  margin: 0;
  color: var(--login-ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.65rem);
  letter-spacing: -.025em;
  line-height: 1;
}

.login-intro {
  margin: 16px 0 24px;
  color: var(--login-muted);
  font-size: .91rem;
  line-height: 1.6;
}

.login-alert {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 17px;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: 13px;
  font-size: .82rem;
  line-height: 1.45;
}

.login-alert > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}
.login-alert p { margin: 0; }
.login-alert--error { border-color: rgba(187,68,45,.23); color: #8e3827; background: #fff1ed; }
.login-alert--error > span { color: #fff; background: #ba4c35; }
.login-alert--success { border-color: rgba(15,136,125,.24); color: #0c675f; background: #edf9f6; }
.login-alert--success > span { color: #fff; background: var(--login-teal); }
.login-alert--info { border-color: rgba(48,99,133,.22); color: #315f7c; background: #eff7fb; }
.login-alert--info > span { color: #fff; background: #447b9c; }

.login-form { display: grid; gap: 17px; }
.login-field { display: grid; gap: 8px; }
.login-field > label { color: #26372f; font-size: .84rem; font-weight: 800; }

.login-input-wrap { position: relative; }
.login-input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 20px;
  height: 20px;
  color: #7b8982;
  transform: translateY(-50%);
  pointer-events: none;
}
.login-input-icon svg { width: 100%; height: 100%; fill: currentColor; }

.login-input-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 0 50px 0 46px;
  border: 1px solid rgba(23,37,31,.18);
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: var(--login-ink);
  font: inherit;
  font-size: .92rem;
  box-shadow: inset 0 1px 1px rgba(23,37,31,.025);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-input-wrap input::placeholder { color: #98a29d; }
.login-input-wrap input:hover { border-color: rgba(23,37,31,.3); }
.login-input-wrap input:focus { border-color: rgba(15,136,125,.62); box-shadow: 0 0 0 4px rgba(15,136,125,.1), 0 10px 24px rgba(27,43,36,.06); }
.login-input-wrap input[aria-invalid="true"] { border-color: rgba(187,68,45,.45); }
.login-input-wrap:focus-within .login-input-icon { color: var(--login-teal); }

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  color: #69766f;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .18s ease, background .18s ease;
}
.login-password-toggle:hover { color: var(--login-green); background: rgba(15,136,125,.08); }
.login-password-toggle svg { width: 21px; height: 21px; fill: currentColor; }
.login-password-toggle .eye-closed { display: none; }
.login-password-toggle.is-visible .eye-open { display: none; }
.login-password-toggle.is-visible .eye-closed { display: block; }

.login-security-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: -3px;
  color: #6b7771;
  font-size: .73rem;
  font-weight: 700;
}
.login-security-note svg { width: 16px; height: 16px; fill: #0f887d; }

.login-submit {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 19px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #15483e 0%, #0c352e 100%);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(16,61,53,.21);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.login-submit b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #26331d;
  background: var(--login-gold);
  font-size: 1.05rem;
}
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(16,61,53,.27); }
.login-submit:disabled { cursor: wait; opacity: .78; transform: none; }
.login-submit.is-loading b { animation: login-pulse .8s ease-in-out infinite alternate; }
@keyframes login-pulse { to { opacity: .45; transform: translateX(2px); } }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0 14px;
  color: #89938e;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.login-divider::before,
.login-divider::after { content: ""; height: 1px; flex: 1; background: var(--login-line); }

.login-register {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(23,37,31,.15);
  border-radius: 13px;
  color: var(--login-green);
  background: #fff;
  font-size: .87rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.login-register:hover { border-color: rgba(15,136,125,.38); background: #f5fbf9; transform: translateY(-1px); }
.login-legal { margin: 15px auto 0; max-width: 390px; color: #8b9590; font-size: .68rem; line-height: 1.55; text-align: center; }

.login-page :focus-visible { outline: 3px solid rgba(15,136,125,.28); outline-offset: 3px; }

@media (max-width: 980px) {
  body.login-page { padding-top: 94px; }
  .login-main { width: min(760px, calc(100% - 28px)); }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: 390px; padding: 30px 36px; }
  .login-story-copy { margin: 38px 0 26px; }
  .login-story h1 { max-width: 12ch; font-size: clamp(2.8rem, 8vw, 4.2rem); }
  .login-benefits { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .login-benefits span { align-items: flex-start; flex-direction: column; gap: 7px; }
  .login-quote { display: none; }
  .login-form-panel { padding: 42px clamp(28px,8vw,74px) 48px; }
}

@media (max-width: 680px) {
  body.login-page { padding: 80px 0 calc(245px + var(--safe-bottom,0px)); }
  .login-main { width: calc(100% - 18px); }
  .login-shell { min-height: 0; border-radius: 22px; }
  .login-story { min-height: 0; padding: 23px 21px 26px; }
  .login-back { font-size: .77rem; }
  .login-story-copy { margin: 28px 0 0; }
  .login-story h1 { max-width: 10ch; margin-bottom: 12px; font-size: clamp(2.4rem,12vw,3.35rem); }
  .login-story-copy > p { font-size: .86rem; line-height: 1.58; }
  .login-benefits { grid-template-columns: 1fr; gap: 6px; margin-top: 20px; }
  .login-benefits span { flex-direction: row; }
  .login-form-panel { padding: 30px 19px 32px; }
  .login-form-head { gap: 11px; }
  .login-lock { width: 43px; height: 43px; border-radius: 13px; }
  .login-form-head h2 { font-size: 2rem; }
  .login-intro { margin: 13px 0 21px; }
  .login-input-wrap input { min-height: 52px; font-size: 16px; }
  .login-submit { min-height: 53px; }
}

@media (max-width: 380px) {
  .login-story { padding-inline: 18px; }
  .login-story h1 { font-size: 2.3rem; }
  .login-benefits i { width: 25px; height: 25px; }
  .login-form-panel { padding-inline: 15px; }
}

@media (max-height: 720px) and (min-width: 981px) {
  body.login-page { padding-top: 92px; }
  .login-shell { min-height: 570px; }
  .login-story { padding-block: 28px; }
  .login-story-copy { margin-block: 24px; }
  .login-form-panel { padding-block: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-page *, .login-page *::before, .login-page *::after { transition: none !important; animation: none !important; }
}
