:root {
  --brand: #7F0140;
  --brand-deep: #4A0026;
  --brand-dark: #35001C;
  --brand-soft: #F6EAF0;
  --ink: #25151D;
  --muted: #806F78;
  --line: #E9DDE3;
  --paper: #FFFCFD;
  --white: #FFFFFF;
  --success: #147D54;
  --danger: #B42345;
  --shadow: 0 24px 70px rgba(62, 0, 32, .10);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, .98fr);
  min-height: 100vh;
  background: var(--paper);
}

.brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(36px, 5.2vw, 76px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse at 14% 88%, rgba(255,255,255,.10), transparent 34%),
    linear-gradient(145deg, #8B0A4D 0%, var(--brand) 46%, #5E002F 100%);
}
.brand-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(135deg, black, transparent 78%);
}
.brand-panel__texture {
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  right: -240px;
  top: 18%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255,255,255,.025), 0 0 0 108px rgba(255,255,255,.02), 0 0 0 162px rgba(255,255,255,.015);
}
.brand-panel__top { position: relative; z-index: 2; display: flex; align-items: center; gap: 26px; }
.brand-logo { display: block; width: min(340px, 54%); height: auto; object-fit: contain; }
.brand-kicker {
  padding-left: 23px;
  border-left: 1px solid rgba(255,255,255,.32);
  color: rgba(255,255,255,.72);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1.7;
  white-space: nowrap;
}
.brand-panel__content { position: relative; z-index: 2; max-width: 620px; margin: auto 0; padding: 72px 0 86px; }
.eyebrow, .login-label { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.eyebrow { color: rgba(255,255,255,.78); }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: #F7C5DA; box-shadow: 0 0 0 5px rgba(247,197,218,.12); }
.brand-panel h1 {
  margin: 25px 0 22px;
  font-size: clamp(48px, 5.6vw, 82px);
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: .99;
}
.brand-panel h1 span { color: #F4C9DA; }
.brand-description { max-width: 480px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(14px, 1.15vw, 17px); line-height: 1.85; }
.brand-pill-row { display: flex; align-items: center; gap: 13px; margin-top: 38px; color: rgba(255,255,255,.85); font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.brand-pill-row i { display: block; width: 4px; height: 4px; border-radius: 50%; background: #E9A8C4; }
.brand-panel__bottom { position: relative; z-index: 2; }
.bottom-rule { width: 100%; height: 1px; background: rgba(255,255,255,.22); }
.bottom-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 17px; color: rgba(255,255,255,.68); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.bottom-meta b { color: #fff; }
.orb { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; pointer-events: none; }
.orb--one { width: 170px; height: 170px; right: 8%; bottom: 20%; }
.orb--two { width: 74px; height: 74px; right: 19%; bottom: 32%; background: rgba(255,255,255,.05); }
.orb--three { width: 15px; height: 15px; right: 22%; bottom: 27%; background: #F1C4D6; border: 0; box-shadow: 0 0 0 10px rgba(241,196,214,.09); }

.login-panel { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; padding: 74px clamp(34px, 6.3vw, 100px) 84px; background: var(--paper); }
.login-wrap { width: 100%; max-width: 420px; margin: auto; }
.login-panel__mobile-brand { display: none; }
.login-label { color: var(--brand); }
.login-label__line { width: 25px; height: 2px; border-radius: 2px; background: var(--brand); }
.login-heading h2 { margin: 23px 0 12px; color: var(--ink); font-size: clamp(34px, 3.2vw, 43px); font-weight: 760; letter-spacing: -.055em; line-height: 1.08; }
.login-heading h2 span { color: var(--brand); }
.login-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.auth-form { display: grid; gap: 22px; margin-top: 38px; }
.field-group { display: grid; gap: 9px; }
.field-group label { color: #493640; font-size: 12px; font-weight: 750; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.input-shell {
  display: flex;
  align-items: center;
  min-height: 56px;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input-shell:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(127,1,64,.09); }
.field-icon { flex: 0 0 19px; width: 19px; height: 19px; color: #9A8791; }
.input-shell input { min-width: 0; width: 100%; height: 54px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.input-shell input::placeholder { color: #B6AAB0; }
.password-toggle { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 34px; padding: 0; border: 0; color: #8D7B84; background: transparent; }
.password-toggle svg { width: 19px; height: 19px; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.text-button, .back-button { padding: 0; border: 0; color: var(--brand); background: transparent; font-size: 11px; font-weight: 750; }
.text-button:hover, .back-button:hover { text-decoration: underline; }
.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 3px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(127,1,64,.18);
  font-size: 13px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.submit-button:hover { transform: translateY(-1px); background: #680035; box-shadow: 0 14px 28px rgba(127,1,64,.23); }
.submit-button:active { transform: translateY(0); }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; }
.submit-button svg { width: 19px; height: 19px; }
.back-button { justify-self: center; margin-top: -6px; }
.form-message { padding: 12px 14px; border: 1px solid #E6D4DD; border-radius: 9px; color: #6C2145; background: #FBF1F5; font-size: 12px; line-height: 1.6; }
.form-message[data-kind="success"] { border-color: #C8E6D8; color: #126342; background: #EFFAF4; }
.form-message[data-kind="error"] { border-color: #F0CDD5; color: #9D2342; background: #FFF2F4; }
.login-footnote { display: flex; align-items: flex-start; gap: 9px; margin-top: 27px; color: #97868F; font-size: 10px; line-height: 1.7; }
.footnote-dot { flex: 0 0 6px; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #C88AA8; }
.site-footer { position: absolute; right: clamp(34px, 6.3vw, 100px); bottom: 30px; left: clamp(34px, 6.3vw, 100px); display: flex; justify-content: center; align-items: center; gap: 10px; color: #AA9CA3; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.footer-separator { color: #D1C5CB; }

button:focus-visible { outline: 3px solid rgba(127,1,64,.25); outline-offset: 3px; }

@media (max-width: 1000px) {
  .page-shell { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); }
  .brand-panel { padding: 42px; }
  .brand-panel__top { flex-wrap: wrap; gap: 18px; }
  .brand-logo { width: min(300px, 100%); }
  .brand-kicker { padding-left: 15px; font-size: 8px; }
  .brand-panel h1 { font-size: clamp(47px, 6vw, 66px); }
  .login-panel { padding-right: 48px; padding-left: 48px; }
  .site-footer { right: 48px; left: 48px; }
}

@media (max-width: 760px) {
  .page-shell { display: flex; flex-direction: column; min-height: 100vh; }
  .brand-panel { display: none; }
  .login-panel { justify-content: flex-start; min-height: 100vh; padding: 0 25px 82px; }
  .login-panel__mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% + 50px);
    min-height: 156px;
    margin: 0 -25px 0;
    padding: 30px 25px;
    background: linear-gradient(135deg, #8B0A4D, var(--brand) 58%, #5E002F);
  }
  .login-panel__mobile-brand img { width: min(290px, 76vw); height: auto; }
  .login-wrap { max-width: 430px; margin: 48px auto 0; }
  .login-heading h2 { margin-top: 19px; font-size: 36px; }
  .auth-form { margin-top: 30px; gap: 19px; }
  .site-footer { right: 20px; bottom: 22px; left: 20px; font-size: 7px; }
  .login-footnote { margin-top: 22px; }
}

@media (max-width: 380px) {
  .login-panel { padding-right: 19px; padding-left: 19px; }
  .login-panel__mobile-brand { width: calc(100% + 38px); margin-right: -19px; margin-left: -19px; }
  .login-heading h2 { font-size: 33px; }
  .site-footer { gap: 6px; font-size: 6px; letter-spacing: .1em; }
}

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