:root {
  --primary: #F9670B;
  --primary-pressed: #DE5C00;
  --page: #f3f1ed;
  --card: #ffffff;
  --elev: #ffffff;
  --line: #eeeeee;
  --text: #121212;
  --muted: #5c5854;
  --soft: #7a726c;
  --lede: #3a3632;
  --ghost-border: #ddd8d2;
  --ghost-color: #121212;
  --nav-scrolled: rgba(255,255,255,.94);
  --nav-shadow: 0 12px 40px rgba(18,16,14,.08);
  --foot-link: #3a3632;
  --footer: #ffffff;
  --field: #f6f3ee;
  --field-line: #e4e0da;
  --bs-primary: #F9670B;
  --bs-primary-rgb: 249, 103, 11;
  --radius: 18px;
}
html[data-bs-theme="dark"] {
  --page: #000000;
  --card: #171717;
  --elev: #1F1F1F;
  --line: #2A2A2A;
  --text: #FFFFFF;
  --muted: #A39A93;
  --soft: #7A726C;
  --lede: #D8D0C8;
  --ghost-border: #3A3A3A;
  --ghost-color: #fff;
  --nav-scrolled: rgba(23,23,23,.92);
  --nav-shadow: 0 12px 40px rgba(0,0,0,.35);
  --foot-link: #D8D0C8;
  --footer: #111111;
  --field: #262626;
  --field-line: #3A3A3A;
}
html { color-scheme: light; }
html[data-bs-theme="dark"] { color-scheme: dark; }
html[data-bs-theme="dark"] .auth-card option,
html[data-bs-theme="dark"] .auth-card optgroup {
  color: #121212 !important;
  background-color: #ffffff !important;
}
* { box-sizing: border-box; }
html, body.auth-body { height: 100%; }
body.auth-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}
a { color: var(--primary); }
img { max-width: 100%; display: block; }
.auth-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.auth-brand img,
.auth-wordmark-mark img { width: 44px; height: 44px; }
.brand-logo-dark { display: none; }
html[data-bs-theme="dark"] .brand-logo-light { display: none !important; }
html[data-bs-theme="dark"] .brand-logo-dark { display: block !important; }
.auth-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.auth-wordmark-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.auth-wordmark-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.auth-wordmark-name em {
  color: var(--primary);
  font-style: normal;
}
.auth-wordmark-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "visual form";
  direction: ltr;
  gap: 0;
  align-items: stretch;
}
.auth-shell-solo {
  grid-template-columns: 1fr;
  grid-template-areas: "form";
}
.auth-visual {
  grid-area: visual;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.18) 28%, rgba(0,0,0,.28) 52%, rgba(0,0,0,.82) 100%);
  pointer-events: none;
}
.auth-visual img.person {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.auth-visual-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 36px 28px;
  color: #fff;
}
.auth-visual-frame .auth-wordmark-name { color: #fff; }
.auth-visual-frame .auth-wordmark-tag { color: rgba(255,255,255,.72); }
.auth-visual-copy {
  color: #fff;
  text-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.auth-main {
  grid-area: form;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  align-items: center;
  padding: 40px 32px;
  overflow-y: auto;
  background: var(--page);
}
html[data-bs-theme="dark"] .auth-main {
  background: var(--elev);
}
.auth-panel {
  width: min(460px, 100%);
  margin-block: auto;
}
.auth-visual-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -.045em;
  line-height: .95;
  font-weight: 800;
}
.auth-visual-copy h2 em { color: var(--primary); font-style: normal; }
.auth-visual-copy > p { margin: 0; color: rgba(255,255,255,.88); max-width: 460px; }
.auth-visual-points {
  list-style: none;
  margin: 28px 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.auth-visual-points li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0 16px;
  text-shadow: none;
  border-left: 1px solid rgba(255,255,255,.14);
}
.auth-visual-points li:first-child {
  padding-left: 0;
  border-left: 0;
}
.auth-visual-points img {
  width: 48px;
  height: 48px;
  background: transparent;
}
.auth-visual-points strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.auth-visual-points span {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,.72);
}
.auth-visual-copy .auth-visual-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.auth-visual-foot::before {
  content: "";
  width: 36px;
  height: 3px;
  border-radius: 99px;
  background: var(--primary);
  flex: 0 0 auto;
}
.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px 28px;
}
.auth-card-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.auth-card h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.04em;
  font-weight: 800;
  line-height: 1.05;
}
.auth-card h1 em { color: var(--primary); font-style: normal; }
.auth-lede { color: var(--lede); margin: 0 0 22px; }
.auth-card .form-text { color: var(--muted); font-size: 13px; margin-top: 6px; }
.auth-card .form-control,
.auth-card .form-select {
  min-height: 48px;
  font-size: 16px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  color: var(--text);
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(249,103,11,.18);
  background: var(--field);
  color: var(--text);
}
.auth-card .form-control::placeholder { color: var(--soft); font-size: 14px; }
.auth-card .input-group {
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--field);
}
.auth-card .input-group > .form-control,
.auth-card .input-group > .form-select,
.auth-card .input-group > .input-group-text {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 48px;
  font-size: 16px;
  color: var(--text);
}
.auth-card .input-group > .form-control {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-radius: 0;
}
.auth-card .input-group > .input-group-text {
  width: 44px;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  color: var(--muted);
}
.auth-card .input-group > [data-password-toggle] {
  cursor: pointer;
  width: 44px;
}
.auth-card .input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(249,103,11,.18);
}
.auth-card .input-group .form-control:focus {
  box-shadow: none;
  border-color: transparent;
}
.auth-card .form-check-label { color: var(--lede); }
.auth-card .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.auth-card .alert { border-radius: 14px; border: 0; }
.auth-card .btn-primary,
.auth-card .btn-orange {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary-pressed);
  --bs-btn-hover-border-color: var(--primary-pressed);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--primary-pressed);
  --bs-btn-active-border-color: var(--primary-pressed);
  --bs-btn-focus-shadow-rgb: 222, 92, 0;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: 999px;
  min-height: 46px;
  font-weight: 600;
}
.auth-card .btn-primary:hover,
.auth-card .btn-orange:hover {
  background: var(--primary-pressed);
  border-color: var(--primary-pressed);
  color: #fff;
}
.auth-card :not(.btn-check) + .btn-primary:active,
.auth-card .btn-primary:first-child:active,
.auth-card .btn-primary:active,
.auth-card .btn-primary.active,
.auth-card .btn-orange:active,
.auth-card .btn-orange.active {
  background: var(--primary-pressed);
  border-color: var(--primary-pressed);
  color: #fff;
}
.auth-card .btn-outline-secondary {
  border-radius: 999px;
  min-height: 46px;
  border-color: var(--ghost-border);
  color: var(--ghost-color);
}
.auth-card .btn:focus-visible,
.auth-wordmark:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.auth-links { color: var(--muted); }
.auth-links a { font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-card .iti { width: 100%; display: block; }
.auth-card .iti input.form-control,
.auth-card .iti .iti__tel-input {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  color: var(--text);
}
.auth-card .form-control:-webkit-autofill,
.auth-card .form-control:-webkit-autofill:hover,
.auth-card .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--field) inset;
  transition: background-color 9999s ease-out;
}
.auth-card .iti__country-container { z-index: 5; }
.iti--container,
.iti--fullscreen-popup,
.iti--container .iti__dropdown-content,
.iti--fullscreen-popup .iti__dropdown-content,
.iti__dropdown-content,
.auth-card .iti__dropdown-content,
.iti__country-list,
.auth-card .iti__country-list {
  z-index: 60;
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
}
.iti__search-input,
.auth-card .iti__search-input {
  background: var(--field);
  color: var(--text);
  border-color: var(--field-line);
}
.iti__country,
.iti__country-name {
  color: var(--text);
}
.iti__dial-code {
  color: var(--muted);
}
.iti__country.iti__highlight,
.iti__country:hover,
.auth-card .iti__country.iti__highlight,
.auth-card .iti__country:hover {
  background: var(--field);
}
@media (max-width: 1180px) {
  .auth-visual-points { grid-template-columns: 1fr 1fr; }
  .auth-visual-points li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .auth-visual-copy h2 { font-size: clamp(30px, 4vw, 44px); }
  .auth-visual-frame { padding: 24px 24px 22px; }
}
@media (max-width: 960px) {
  .auth-shell,
  .auth-shell-solo {
    grid-template-columns: 1fr;
    grid-template-areas: "form";
  }
  .auth-visual { display: none; }
  .auth-main {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 18px;
  }
  .auth-card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .auth-card h1 { font-size: 28px; }
  .auth-main { padding: 24px 16px; }
}
