:root { 
  color-scheme: light; 
  --auth-ink: #163047; 
  --auth-muted: #73839a; 
  --auth-red: #b30707; 
}

* { box-sizing: border-box; }

body.auth-page { 
  min-height: 100vh; 
  margin: 0; 
  display: grid; 
  place-items: center; 
  padding: 0; 
  color: var(--auth-ink); 
  background: #edf0f5; 
  font-family: "Segoe UI", Arial, sans-serif; 
}

.auth-shell { 
  display: grid; 
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 520px);
  height: auto;
  min-height: 0; 
  overflow: hidden; 
  border-radius: 22px;
  background: #fff; 
  box-shadow: 0 16px 55px #10273b12; 
}

.auth-shell { 
  animation: auth-arrive .48s cubic-bezier(.2,.7,.2,1) both; 
}

.auth-panel-inner {
  width: 100%; 
  max-width: 510px; 
  margin: auto; 
}

.auth-brand { 
  display: inline-flex; 
  align-items: center; 
  justify-content: flex-start; 
  width: 156px; 
  height: auto; 
  margin: 0 0 40px; 
  padding: 0; 
  border-radius: 0; 
  background: transparent; 
}

.auth-brand img { 
  display: block; 
  width: 100%; 
  max-width: 156px; 
  max-height: none; 
  object-fit: contain; 
}

.auth-panel { 
  display: grid; 
  align-items: center; 
  min-height: 0; 
  padding: 44px clamp(38px, 5.5vw, 74px); 
}

.auth-panel form { 
  width: 100%; 
  max-width: none; 
  margin: 0; 
}

.auth-access-label { 
  display: block; 
  margin-bottom: 10px; 
  color: var(--auth-red); 
  font-size: 11px; 
  font-weight: 750; 
  letter-spacing: .16em; 
}

.auth-panel h1 { 
  margin: 0 0 12px; 
  color: var(--auth-ink); 
  font-size: 35px; 
  font-weight: 720; 
  line-height: 1.15; 
  letter-spacing: -.04em; 
}

.auth-intro { 
  margin: 0 0 36px; 
  color: var(--auth-muted); 
  font-size: 16px; 
  line-height: 1.55; 
}

.auth-panel #alert_box:empty { 
  display: none; 
}

.auth-panel .alert { 
  margin-bottom: 23px; 
  border: 0; 
  border-radius: 10px; 
  font-size: 14px; 
}

.auth-panel .form-floating { 
  margin-bottom: 22px !important; 
}

.auth-panel .password-caps-warning { 
  display: flex; 
  align-items: center; 
  gap: 6px;
  margin: -11px 0 18px; 
  padding: 2px 0; 
  color: #81530c; 
  font-size: 13px; 
  line-height: 1.35; 
}

.auth-panel .password-caps-warning[hidden] { 
  display: none; 
}

.auth-panel .password-caps-warning span { 
  display: inline; 
  color: #b07819; 
  font-size: 15px; 
  font-weight: 800; 
}

.auth-panel .form-control,
.auth-panel .form-select {
  height: 73px; 
  border: 1px solid #d8e0e8; 
  border-radius: 12px; 
  color: var(--auth-ink); 
  background: #fff; 
  box-shadow: none; 
  font-size: 18px; 
  transition: border-color .18s, box-shadow .18s, background-color .18s; 
}

.auth-panel .form-select {
  padding-right: 2.25rem;
  appearance: auto;
  background-image: none;
  cursor: pointer;
}

.auth-panel .form-control:hover:not(:focus),
.auth-panel .form-select:hover:not(:focus) {
  border-color: #bac7d4; 
}

.auth-panel .form-control:focus,
.auth-panel .form-select:focus {
  border-color: var(--auth-red); 
  box-shadow: 0 0 0 4px rgb(179 7 7 / 9%); 
}

.auth-panel .password-toggle { 
  position: absolute; 
  z-index: 5; 
  top: 50%; 
  right: 12px; 
  display: grid; 
  width: 44px; 
  height: 44px; 
  padding: 10px; 
  transform: translateY(-50%); 
  place-items: center; 
  border: 0; 
  border-radius: 10px; 
  color: #718195; 
  background: transparent; 
  cursor: pointer; 
  transition: color .16s, background .16s, transform .16s; 
}

.auth-panel .password-toggle:hover { 
  color: var(--auth-red); 
  background: #b307070d; 
}

.auth-panel .password-toggle:active { 
  transform: translateY(-50%) scale(.96); 
}

.auth-panel .password-toggle svg { 
  width: 23px; 
  height: 23px; 
  fill: none; 
  stroke: currentColor; 
  stroke-width: 1.8; 
  stroke-linecap: round; 
  stroke-linejoin: round; 
}

.auth-panel .password-toggle circle { 
  fill: none; 
  stroke: currentColor; 
}

.auth-panel .password-toggle .password-eye-slash { 
  display: block; 
}

.auth-panel 
.password-toggle[aria-pressed="true"] 
.password-eye-slash { 
  display: none; 
}

.auth-panel #password,
.auth-panel #password_confirmation { 
  padding-right: 62px; 
}

.auth-panel 
.form-floating > label { 
  padding: 1.35rem 1.15rem; 
  color: #77869b !important; 
  font-size: 18px; 
}

.auth-panel 
.btn-danger { 
  min-height: 68px; 
  margin-top: 6px; 
  border: 0; 
  border-radius: 13px; 
  background: var(--auth-red); 
  box-shadow: 0 11px 22px rgb(179 7 7 / 17%); 
  font-size: 18px; 
  font-weight: 700; 
  transition: transform .16s, background .16s, box-shadow .16s; 
}

.auth-panel 
.btn-danger:hover { 
  transform: translateY(-1px); 
  background: #980606; 
  box-shadow: 0 13px 26px rgb(179 7 7 / 22%); 
}

.auth-panel 
.btn-danger:active { 
  transform: translateY(0) scale(.985);
  box-shadow: 0 5px 12px rgb(179 7 7 / 16%);
}

.auth-panel 
.btn-outline-secondary { 
  min-height: 56px; 
  border-radius: 11px; 
}

.auth-panel .btn-oauth {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e0e8;
  border-radius: 11px;
  color: var(--auth-ink);
  background: #fff;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.auth-panel .btn-oauth:hover {
  border-color: #aebdcc;
  background: #f7f9fb;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: #e4e9ee;
  content: "";
}

.auth-panel a:not(.btn) { 
  color: var(--auth-red); 
  font-size: 16px; 
  font-weight: 600; 
  text-decoration: none; 
}

.auth-panel a:not(.btn):hover { 
  text-decoration: underline; 
}

.auth-panel form > p:last-child { 
  margin: 24px 0 0; 
  text-align: center; 
}

.auth-panel 
.btn:focus-visible, 
.auth-panel a:focus-visible, 
.auth-brand:focus-visible, 
.auth-panel 
.password-toggle:focus-visible { 
  outline: 3px solid #386eaa; 
  outline-offset: 4px; 
}

@media (max-width: 850px) {
  body.auth-page { 
    min-height: 100vh; 
    padding: 20px; 
  }

  .auth-shell { 
    grid-template-columns: 1fr; 
    width: min(100%, 520px); 
    height: auto; 
    min-height: 0; 
    border-radius: 22px; 
  }

  .auth-panel-inner { 
    max-width: none; 
  }

  .auth-brand { 
    width: 152px; 
    margin-bottom: 27px; 
  }

  .auth-brand img { 
    max-width: 152px; 
  }

  .auth-panel { 
    padding: 38px 32px 34px; 
  }

  .auth-panel h1 { 
    font-size: 28px; 
  }

  .auth-intro { 
    margin-bottom: 26px; 
    font-size: 14px; 
  }

  .auth-panel 
  .form-floating { 
    margin-bottom: 16px !important; 
  }

  .auth-panel .form-control,
  .auth-panel .form-select {
    height: 60px; 
    font-size: 15px; 
  }

  .auth-panel 
  .form-floating > label { 
    padding: 1.08rem 1rem; 
    font-size: 15px; 
  }

  .auth-panel 
  .btn-danger { 
    min-height: 55px; 
    font-size: 15px; 
  }

  .auth-panel 
  form > p:last-child { 
    margin-top: 18px; 
  }

}

@media (max-width: 420px) { 
  body.auth-page { 
    padding: 12px; 
  } 

  .auth-shell { 
    border-radius: 18px; 
  } 

  .auth-panel { 
    padding: 30px 23px 27px; 
  } 
}

body.auth-page:not(.auth-signup) { padding: 32px 20px; }
.auth-panel form > p.auth-back-link { margin: 18px 0 0; font-size: 14px; }

body.auth-page.auth-login,
body.auth-page.auth-signup {
  background: radial-gradient(ellipse 52% 62% at 50% 48%, rgb(179 7 7 / 8%), transparent 74%), #edf0f5;
}

/* Login layout: preserve the existing form and add the reference's academy panel. */
.auth-login .auth-shell {
  grid-template-columns: minmax(0, .58fr) minmax(0, 1fr);
  width: min(100%, 920px);
  height: auto;
  min-height: min(700px, calc(100vh - 64px));
  border-radius: 30px;
  box-shadow: 0 24px 60px rgb(22 48 71 / 18%), 0 6px 18px rgb(22 48 71 / 8%);
}
.auth-login .auth-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(24px, 2vw, 32px);
  color: #fff;
  background: linear-gradient(145deg, #79131b 0%, #a9111b 65%, #ba1820 100%);
  text-align: center;
}
.auth-login .auth-promo::before,
.auth-login .auth-promo::after {
  position: absolute;
  right: -95px;
  bottom: -330px;
  width: 590px;
  height: 590px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.auth-login .auth-promo::after {
  right: -155px;
  bottom: -420px;
  width: 700px;
  height: 700px;
  background: rgb(255 255 255 / 3%);
}
.auth-login .auth-promo__content { position: static; width: 100%; margin-top: -24px; z-index: 1; text-align: left; }
.auth-login .auth-promo__motifs {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(240px, 62%);
  height: auto;
  transform: translateX(-50%);
  fill: none;
  stroke: #e6c77f;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
  pointer-events: none;
}
.auth-login .auth-promo__motifs .auth-motif-item {
  transform-box: fill-box;
  transform-origin: center;
  opacity: .78;
  animation: auth-motif-sequence 6s ease-in-out infinite both;
}
.auth-login .auth-promo__motifs .auth-motif-item--two { animation-delay: 2s; }
.auth-login .auth-promo__motifs .auth-motif-item--three { animation-delay: 4s; }
.auth-login .auth-promo__motif-hints {
  position: absolute;
  top: 8%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: min(240px, 62%);
  aspect-ratio: 240 / 64;
  grid-template-columns: repeat(3, 1fr);
  transform: translateX(-50%);
}
.auth-login .auth-promo__motif-hints span { position: relative; cursor: help; }
.auth-login .auth-promo__motif-hints span::after {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 4;
  width: max-content;
  max-width: 180px;
  padding: 7px 10px;
  transform: translate(-50%, 4px);
  border-radius: 7px;
  color: #183348;
  background: #fff;
  box-shadow: 0 5px 16px rgb(30 20 20 / 22%);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.auth-login .auth-promo__motif-hints span:hover::after,
.auth-login .auth-promo__motif-hints span:focus-visible::after {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.auth-login .auth-promo__art {
  position: absolute;
  right: clamp(22px, 3vw, 38px);
  bottom: 24px;
  z-index: 0;
  width: clamp(112px, 11vw, 142px);
  height: auto;
  fill: none;
  stroke: #e6c77f;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
  pointer-events: none;
  animation: auth-art-float 5s ease-in-out infinite;
}
.auth-login .auth-promo__eyebrow {
  position: absolute;
  top: clamp(30px, 5vw, 64px);
  left: clamp(30px, 6vw, 64px);
  z-index: 2;
  display: none;
  margin: 0;
  color: #e9d19a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}
.auth-login .auth-promo h2 {
  max-width: none;
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(28px, 2.8vw, 32px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.06em;
}
.auth-login .auth-promo__content > p {
  max-width: 380px;
  margin: 0;
  color: rgb(255 255 255 / 87%);
  font-size: 16px;
  line-height: 1.75;
}
.auth-login .auth-panel { padding: 24px clamp(32px, 4vw, 54px); }
.auth-login .auth-panel-inner { max-width: 480px; }
.auth-login .auth-brand { margin-bottom: 24px; }
.auth-login .auth-panel form > p.auth-back-link { margin-top: 22px; }
.auth-login .auth-panel .auth-intro { margin-bottom: 28px; }
.auth-login .auth-panel .form-floating { margin-bottom: 16px !important; }
.auth-login .auth-panel .form-control,
.auth-login .auth-panel .form-select { height: 68px; }
.auth-login .auth-panel .btn-danger { min-height: 62px; }

@media (max-width: 850px) {
  body.auth-page.auth-login { padding: 20px; }
  .auth-login .auth-shell {
    grid-template-columns: 1fr;
    width: min(100%, 480px);
    height: auto;
    min-height: 0;
    border-radius: 22px;
  }
  .auth-login .auth-promo {
    display: block;
    min-height: 130px;
    padding: 16px 18px;
    text-align: left;
  }
  .auth-login .auth-promo::before,
  .auth-login .auth-promo::after { display: none; }
  .auth-login .auth-promo__motifs,
  .auth-login .auth-promo__motif-hints,
  .auth-login .auth-promo__steps { display: none; }
  .auth-login .auth-promo__eyebrow { display: none; }
  .auth-login .auth-promo__content { width: calc(100% - 92px); margin: 0; text-align: left; }
  .auth-login .auth-promo h2 { margin-bottom: 5px; font-size: 16px; line-height: 1.12; }
  .auth-login .auth-promo__content > p { max-width: 240px; margin: 0; font-size: 10px; line-height: 1.3; }
  .auth-login .auth-promo__art { top: 52%; right: 10px; bottom: auto; width: 80px; transform: translateY(-50%); animation: auth-art-float-mobile 4s ease-in-out infinite; stroke: #e6c77f; opacity: .65; }
  .auth-login .auth-panel { padding: 20px 24px 18px; }
  .auth-login .auth-brand { width: 136px; margin-bottom: 12px; }
  .auth-login .auth-brand img { flex-basis: 46px; width: 46px; height: 50px; max-width: 46px; max-height: 50px; }
  .auth-login .auth-brand__name strong { font-size: 13px; }
  .auth-login .auth-brand__name span { font-size: 9px; }
  .auth-login .auth-panel h1 { margin-bottom: 8px; font-size: 25px; }
  .auth-login .auth-intro { margin-bottom: 14px; font-size: 13px; }
  .auth-login .auth-panel .form-floating { margin-bottom: 10px !important; }
  .auth-login .auth-panel .form-control,
  .auth-login .auth-panel .form-select { height: 52px; font-size: 14px; }
  .auth-login .auth-panel .form-floating > label { padding: .95rem 1rem; font-size: 14px; }
  .auth-login .auth-panel .text-start.mb-3 { margin-bottom: 8px !important; font-size: 14px; }
  .auth-login .auth-panel .btn-danger { min-height: 48px; margin-top: 2px; font-size: 15px; }
  .auth-login .auth-panel form > p.text-center { margin: 8px 0 0; font-size: 13px; }
  .auth-login .auth-panel form > p.auth-back-link { margin-top: 8px; font-size: 13px; }
}

@media (max-width: 420px) {
  body.auth-page.auth-login { padding: 16px; }
}

.auth-signup { padding: 32px 20px !important; }
.auth-signup .auth-brand { margin-bottom: 24px; }
.auth-signup .auth-panel { padding: 36px 38px; }
.auth-signup .auth-intro { margin-bottom: 22px; }
.auth-signup .auth-panel .form-floating { margin-bottom: 16px !important; }
.auth-signup .auth-panel .form-control,
.auth-signup .auth-panel .form-select { height: 62px; font-size: 16px; }
.auth-signup .auth-panel .form-floating > label { padding: 1.1rem; font-size: 16px; }

.auth-login .auth-brand,
.auth-signup .auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  margin: 0 auto 34px;
  text-decoration: none;
}
.auth-login .auth-brand:hover,
.auth-signup .auth-brand:hover,
.auth-login .auth-brand__name,
.auth-signup .auth-brand__name { text-decoration: none; }
.auth-panel a.auth-brand:hover { text-decoration: none; }

.auth-login .auth-brand img,
.auth-signup .auth-brand img {
  flex: 0 0 54px;
  width: 54px;
  height: 58px;
  max-width: 54px;
  max-height: 58px;
  object-fit: contain;
}

.auth-brand__name {
  display: flex;
  z-index: 1;
  flex-direction: column;
  align-items: flex-start;
  color: #a51f27;
  line-height: 1.08;
  white-space: nowrap;
}

.auth-brand__name strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .055em;
}

.auth-brand__name span {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
}

.auth-signup .auth-brand { margin-bottom: 24px; }

.auth-signup .region-select-wrap { position: relative; }
.auth-signup .region-select-wrap > label {
  z-index: 2;
  transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}
.auth-signup .region-dropdown { position: relative; width: 100%; }
.auth-signup .region-dropdown .filter-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 1.55rem 1rem .45rem;
  border-color: #d8e0e8;
  border-radius: 12px;
  color: var(--auth-ink);
  background: #fff;
  font-size: 16px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.auth-signup .region-dropdown .filter-trigger:hover { border-color: #bac7d4; }
.auth-signup .region-dropdown .filter-trigger[aria-expanded="true"] {
  border-color: var(--auth-red);
  box-shadow: 0 0 0 4px rgb(179 7 7 / 9%);
}
.auth-signup .region-dropdown .filter-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border-color: #d8e0e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px #10273b20;
}
.auth-signup 
.region-dropdown 
.filter-options[hidden] {
  display: none; 
}

.auth-signup 
.region-dropdown 
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--auth-ink);
  font-size: 15px;
  cursor: pointer;
}
.auth-signup 
.region-dropdown 
.filter-option:hover,
.auth-signup 
.region-dropdown 
.filter-option.is-highlighted { background: #f1f4f8; }
.auth-signup 
.region-dropdown 
.filter-option[aria-selected="true"] {
  color: var(--auth-red);
  background: #fceeee;
  font-weight: 600;
}
.auth-signup 
.region-dropdown 
.filter-option[aria-selected="true"]::after {
  content: '✓';
}
.auth-signup 
.region-dropdown 
.filter-option[aria-disabled="true"] { display: none; }
.auth-signup 
.region-dropdown 
.filter-trigger[aria-invalid="true"] { border-color: var(--auth-red); }
.auth-signup 
.region-select-error {
  margin: 0 0 16px;
  color: var(--auth-red);
  font-size: 13px;
}
.auth-signup 
.region-select-error[hidden] { display: none; }

.signup-password-help { 
  margin: -7px 0 18px; 
  color: #596a80; 
  font-size: 13px; 
}

.password-checklist { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: 6px 12px; 
  padding: 0; 
  list-style: none; 
}

.password-checklist[hidden], 
.password-match[hidden] { 
  display: none; 
}

.password-checklist li > span[aria-hidden] { 
  display: inline-block; 
  width: 18px; 
  font-weight: 700; 
}

.password-checklist 
.is-met, 
.password-match.is-matched { 
  color: #21683e; 
}

.password-match { 
  margin: -7px 0 18px; 
  color: #b30707; 
  font-size: 13px; 
}

.auth-signup .form-control:focus,
.auth-signup .form-select:focus { 
  border-color: #718195; 
  box-shadow: 0 0 0 4px rgb(113 129 149 / 12%); 
}

/* Signup uses the same academy split layout as login while keeping its full form. */
.auth-signup .auth-shell {
  grid-template-columns: minmax(0, .58fr) minmax(0, 1fr);
  width: min(100%, 920px);
  height: auto;
  min-height: min(700px, calc(100vh - 64px));
  border-radius: 30px;
  box-shadow: 0 24px 60px rgb(22 48 71 / 18%), 0 6px 18px rgb(22 48 71 / 8%);
}
.auth-signup .auth-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(24px, 2vw, 32px);
  color: #fff;
  background: linear-gradient(145deg, #79131b 0%, #a9111b 65%, #ba1820 100%);
  text-align: center;
}
.auth-signup .auth-promo::before,
.auth-signup .auth-promo::after {
  position: absolute;
  right: -95px;
  bottom: -330px;
  width: 590px;
  height: 590px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.auth-signup .auth-promo::after { right: -155px; bottom: -420px; width: 700px; height: 700px; background: rgb(255 255 255 / 3%); }
.auth-signup .auth-promo__content { position: relative; z-index: 1; width: 100%; text-align: left; }
.auth-signup .auth-promo__motifs { position: absolute; top: 8%; left: 50%; width: min(240px, 62%); height: auto; transform: translateX(-50%); fill: none; stroke: #e6c77f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; pointer-events: none; }
.auth-signup .auth-promo__motifs .auth-motif-item { transform-box: fill-box; transform-origin: center; opacity: .78; animation: auth-motif-sequence 6s ease-in-out infinite both; }
.auth-signup .auth-promo__motifs .auth-motif-item--two { animation-delay: 2s; }
.auth-signup .auth-promo__motifs .auth-motif-item--three { animation-delay: 4s; }
.auth-signup .auth-promo__motif-hints { position: absolute; top: 8%; left: 50%; z-index: 3; display: grid; width: min(240px, 62%); aspect-ratio: 240 / 64; grid-template-columns: repeat(3, 1fr); transform: translateX(-50%); }
.auth-signup .auth-promo__motif-hints span { position: relative; cursor: help; }
.auth-signup .auth-promo__motif-hints span::after { position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 4; width: max-content; max-width: 180px; padding: 7px 10px; transform: translate(-50%, 4px); border-radius: 7px; color: #183348; background: #fff; box-shadow: 0 5px 16px rgb(30 20 20 / 22%); content: attr(data-tooltip); font-size: 12px; font-weight: 650; line-height: 1.25; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .15s ease, transform .15s ease, visibility .15s ease; }
.auth-signup .auth-promo__motif-hints span:hover::after,
.auth-signup .auth-promo__motif-hints span:focus-visible::after { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.auth-signup .auth-promo__art { position: absolute; right: clamp(22px, 3vw, 38px); bottom: 24px; z-index: 0; width: clamp(112px, 11vw, 142px); height: auto; fill: none; stroke: #e6c77f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .72; pointer-events: none; animation: auth-art-float 5s ease-in-out infinite; }
.auth-signup .auth-promo__eyebrow { position: absolute; top: clamp(30px, 5vw, 64px); left: clamp(30px, 6vw, 64px); z-index: 2; display: none; margin: 0; color: #e9d19a; font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.auth-signup .auth-promo h2 { max-width: none; margin: 0 0 28px; color: #fff; font-size: clamp(28px, 2.8vw, 32px); font-weight: 750; line-height: 1.12; letter-spacing: -.06em; }
.auth-signup .auth-promo__content > p { max-width: 380px; margin: 0; color: rgb(255 255 255 / 87%); font-size: 16px; line-height: 1.75; }
.auth-signup .auth-panel { padding: 16px clamp(32px, 4vw, 54px); }
.auth-signup .auth-panel-inner { max-width: 480px; }
.auth-signup .auth-brand { margin-bottom: 22px; }
.auth-signup .auth-panel h1 { margin-bottom: 7px; font-size: 30px; }
.auth-signup .auth-intro { margin-bottom: 9px; }
.auth-signup .auth-panel .form-floating { margin-bottom: 6px !important; }
.auth-signup .auth-panel .form-control,
.auth-signup .auth-panel .form-select { height: 46px; }
.auth-signup .auth-panel .form-floating > label { padding: .85rem 1rem; }
.auth-signup .auth-panel .btn-danger { min-height: 50px; margin-top: 1px; }
.auth-signup .auth-panel form > p.text-center { margin: 6px 0 0; }
.auth-signup .auth-panel form > p:last-child { margin-top: 6px; }

@media (max-width: 850px) {
  body.auth-page.auth-signup { padding: 20px; }
  .auth-signup .auth-shell { grid-template-columns: 1fr; width: min(100%, 520px); height: auto; min-height: 0; border-radius: 22px; }
  .auth-signup .auth-promo { display: block; min-height: 130px; padding: 16px 18px; text-align: left; }
  .auth-signup .auth-promo::before,
  .auth-signup .auth-promo::after { display: none; }
  .auth-signup .auth-promo__motifs,
  .auth-signup .auth-promo__motif-hints { display: none; }
  .auth-signup .auth-promo__content { width: calc(100% - 92px); margin: 0; text-align: left; }
  .auth-signup .auth-promo h2 { margin-bottom: 5px; font-size: 16px; line-height: 1.12; }
  .auth-signup .auth-promo__content > p { max-width: 240px; font-size: 10px; line-height: 1.3; }
  .auth-signup .auth-promo__art { top: 52%; right: 10px; bottom: auto; width: 80px; transform: translateY(-50%); animation: auth-art-float-mobile 4s ease-in-out infinite; stroke: #e6c77f; opacity: .65; }
  .auth-signup .auth-panel { padding: 24px; }
  .auth-signup .auth-brand { margin-bottom: 14px; }
  .auth-signup .auth-panel h1 { margin-bottom: 8px; font-size: 25px; }
  .auth-signup .auth-intro { margin-bottom: 14px; font-size: 13px; }
  .auth-signup .auth-panel .form-floating { margin-bottom: 10px !important; }
  .auth-signup .auth-panel .form-control,
  .auth-signup .auth-panel .form-select { height: 52px; font-size: 14px; }
  .auth-signup .auth-panel .form-floating > label { padding: .95rem 1rem; font-size: 14px; }
  .auth-signup .auth-panel .btn-danger { min-height: 48px; margin-top: 2px; font-size: 15px; }
  .auth-signup .auth-panel form > p.text-center,
  .auth-signup .auth-panel form > p:last-child { margin-top: 10px; font-size: 13px; }
}

@media (max-width: 420px) {
  body.auth-page.auth-signup { padding: 12px; }
  .auth-signup .auth-panel { padding: 22px 18px; }
}

.auth-signup 
.form-control.has-error { 
  border-color: #b30707; 
}

.auth-signup 
.form-control.has-error:focus { 
  box-shadow: 0 0 0 4px rgb(179 7 7 / 9%); 
}

@media (max-width: 420px) { 
  .password-checklist { 
    grid-template-columns: 1fr; 
  } 
}

.auth-signup 
.auth-panel form > p.text-center { 
  margin: 18px 0 0; 
  font-size: 14px; 
}

@media (max-width: 850px) {
  .auth-signup 
  .auth-panel { 
    padding: 30px 24px; 
  }
}

@keyframes auth-arrive { 
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  } 
}

@keyframes auth-art-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes auth-art-float-mobile {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 5px)); }
}

@keyframes auth-motif-sequence {
  0%, 100% { transform: translateY(0); }
  8% { transform: translateY(-4px); }
  18% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { 
  scroll-behavior: auto !important; 
  animation-duration: .01ms !important; 
  transition-duration: .01ms !important; } 
}

/* Compact signup on phones so the full form fits on common screen heights. */
@media (max-width: 850px) {
  body.auth-page.auth-signup { padding: 10px 12px; }
  .auth-signup .auth-promo { min-height: 96px; padding: 12px 16px; }
  .auth-signup .auth-promo__content { width: calc(100% - 70px); }
  .auth-signup .auth-promo h2 { font-size: 15px; }
  .auth-signup .auth-promo__content > p { font-size: 10px; }
  .auth-signup .auth-promo__art { width: 64px; }
  .auth-signup .auth-panel { padding: 14px 22px 12px; }
  .auth-signup .auth-brand { gap: 9px; margin-bottom: 8px; }
  .auth-signup .auth-brand img { flex-basis: 44px; width: 44px; height: 48px; max-width: 44px; max-height: 48px; }
  .auth-signup .auth-brand__name strong { font-size: 12px; }
  .auth-signup .auth-brand__name span { font-size: 8px; }
  .auth-signup .auth-panel h1 { margin-bottom: 5px; font-size: 23px; }
  .auth-signup .auth-intro { margin-bottom: 8px; font-size: 12px; }
  .auth-signup .auth-panel .form-floating { margin-bottom: 6px !important; }
  .auth-signup .auth-panel .form-control,
  .auth-signup .auth-panel .form-select { height: 44px; font-size: 13px; }
  .auth-signup .auth-panel .form-floating > label { padding: .78rem .9rem; font-size: 13px; }
  .auth-signup .auth-panel .btn-danger { min-height: 44px; margin-top: 1px; font-size: 14px; }
  .auth-signup .auth-panel form > p.text-center,
  .auth-signup .auth-panel form > p:last-child { margin-top: 5px; font-size: 12px; }
}

@media (max-width: 420px) {
  body.auth-page.auth-signup { padding: 6px 8px; }
  .auth-signup .auth-panel { padding: 12px 16px 10px; }
}

@media (max-width: 850px) and (max-height: 740px) {
  .auth-signup .auth-promo { min-height: 78px; padding-top: 9px; padding-bottom: 9px; }
  .auth-signup .auth-panel { padding-top: 9px; padding-bottom: 8px; }
  .auth-signup .auth-brand { margin-bottom: 5px; }
  .auth-signup .auth-brand img { flex-basis: 38px; width: 38px; height: 42px; max-width: 38px; max-height: 42px; }
  .auth-signup .auth-panel h1 { font-size: 21px; }
  .auth-signup .auth-intro { margin-bottom: 5px; }
  .auth-signup .auth-panel .form-floating { margin-bottom: 4px !important; }
  .auth-signup .auth-panel .form-control,
  .auth-signup .auth-panel .form-select { height: 41px; }
  .auth-signup .auth-panel .btn-danger { min-height: 41px; }
  .auth-signup .auth-panel form > p.text-center,
  .auth-signup .auth-panel form > p:last-child { margin-top: 3px; }
}
