:root {
  --auth-primary: #bb976d;
  --auth-primary-deep: #946e42;
  --auth-accent: #496250;
  --auth-ink: #201a16;
  --auth-copy: #61584d;
  --auth-muted: #8d8376;
  --auth-surface: #fffdfa;
  --auth-panel: rgba(255, 255, 255, 0.94);
  --auth-line: rgba(187, 151, 109, 0.22);
  --auth-shadow: 0 28px 80px rgba(43, 29, 15, 0.12);
  --auth-shadow-soft: 0 14px 30px rgba(43, 29, 15, 0.08);
}

.auth-page {
  position: relative;
  min-height: calc(100vh - 82px);
  padding: 44px 18px 72px;
  background:
    radial-gradient(circle at top left, rgba(187, 151, 109, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(73, 98, 80, 0.12), transparent 24%),
    linear-gradient(135deg, #f7f2eb 0%, #ffffff 46%, #f4eee7 100%);
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-page::before {
  width: 280px;
  height: 280px;
  top: 56px;
  right: min(6vw, 64px);
  background: radial-gradient(circle, rgba(187, 151, 109, 0.16), transparent 72%);
}

.auth-page::after {
  width: 240px;
  height: 240px;
  bottom: 10px;
  left: min(5vw, 48px);
  background: radial-gradient(circle, rgba(73, 98, 80, 0.12), transparent 70%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--auth-shadow);
  isolation: isolate;
}

.auth-showcase {
  position: relative;
  min-height: 680px;
  padding: 42px clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(23, 18, 13, 0.16) 0%, rgba(23, 18, 13, 0.42) 45%, rgba(23, 18, 13, 0.82) 100%),
    var(--auth-showcase-image);
  background-size: cover;
  background-position: center;
}

.auth-showcase::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
}

.auth-showcase__content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.auth-showcase__eyebrow,
.auth-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.auth-showcase__eyebrow {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.auth-showcase__title {
  margin: 22px 0 16px;
  color: #fff;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(2.35rem, 4vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.auth-showcase__copy {
  max-width: 460px;
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.auth-showcase__list {
  display: grid;
  gap: 14px;
}

.auth-showcase__feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(32, 26, 22, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-showcase__feature-index {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.auth-showcase__feature h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #fff;
}

.auth-showcase__feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
  font-size: 0.96rem;
}

.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 240, 0.96)),
    var(--auth-panel);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(187, 151, 109, 0.12), transparent 72%);
  pointer-events: none;
}

.auth-panel__body {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  margin: 0 auto;
}

.auth-panel__eyebrow {
  color: var(--auth-primary-deep);
  background: rgba(187, 151, 109, 0.12);
  border: 1px solid rgba(187, 151, 109, 0.18);
}

.auth-panel__title {
  margin: 18px 0 12px;
  color: var(--auth-ink);
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.auth-panel__copy {
  margin: 0 0 26px;
  color: var(--auth-copy);
  line-height: 1.75;
  font-size: 1rem;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 10px;
}

.auth-label,
.login-label {
  display: block;
  margin: 0;
  color: var(--auth-ink);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 18px;
  height: 18px;
  color: var(--auth-primary-deep);
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-input,
.login-field {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--auth-line);
  border-radius: 18px;
  background: var(--auth-surface);
  color: var(--auth-ink);
  padding: 0 18px 0 50px;
  font-size: 1rem;
  line-height: 1.2;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.auth-input::placeholder,
.login-field::placeholder {
  color: var(--auth-muted);
}

.auth-input:focus,
.login-field:focus {
  outline: none;
  border-color: rgba(187, 151, 109, 0.78);
  box-shadow: 0 0 0 4px rgba(187, 151, 109, 0.14);
  transform: translateY(-1px);
}

.auth-input.is-invalid,
.login-field.is-invalid,
.login-field.border-red-500,
.auth-input.border-red-500 {
  border-color: #d15353;
}

.auth-phone-wrap {
  isolation: isolate;
  overflow: visible;
  z-index: 10;
}

.auth-phone-wrap .auth-input-icon {
  z-index: 3;
}

.auth-country-picker {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 48px;
  width: 102px;
  transform: translateY(-50%);
}

.auth-country-picker__button {
  width: 100%;
  height: 38px;
  border: none;
  border-right: 1px solid var(--auth-line);
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px 0 0;
  background: transparent;
  color: var(--auth-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1;
}

.auth-country-picker__button:focus-visible {
  outline: 2px solid rgba(187, 151, 109, 0.28);
  outline-offset: 4px;
}

.auth-country-picker__flag {
  width: 24px;
  height: 16px;
  flex: none;
  border-radius: 4px;
  background-color: rgba(187, 151, 109, 0.12);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 0 0 1px rgba(32, 26, 22, 0.08);
}

.auth-country-picker__code {
  min-width: 30px;
  color: var(--auth-ink);
  font-size: 0.96rem;
}

.auth-country-picker__chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--auth-muted);
  transition: transform 0.2s ease;
}

.auth-country-picker.is-open .auth-country-picker__chevron {
  transform: rotate(180deg);
}

.auth-country-picker__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  width: 190px;
  max-height: 234px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(187, 151, 109, 0.2);
  border-radius: 16px;
  background: #fffdfa;
  box-shadow: 0 18px 42px rgba(43, 29, 15, 0.16);
}

.auth-country-picker__menu[hidden] {
  display: none;
}

.auth-country-picker__option {
  width: 100%;
  min-height: 40px;
  border: none;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 24px 34px 1fr;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: transparent;
  color: var(--auth-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
}

.auth-country-picker__option:hover,
.auth-country-picker__option:focus-visible,
.auth-country-picker__option[aria-selected="true"] {
  outline: none;
  background: rgba(187, 151, 109, 0.12);
}

.auth-country-picker__short {
  color: var(--auth-copy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.auth-country-picker__option-code {
  color: var(--auth-ink);
  font-weight: 800;
}

.auth-phone-number {
  padding-left: 168px;
}

.auth-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.auth-toggle:hover {
  color: var(--auth-primary-deep);
  background: rgba(187, 151, 109, 0.08);
}

.auth-toggle__icon {
  width: 18px;
  height: 18px;
}

.auth-toggle__icon--hide {
  display: none;
}

.auth-toggle.is-active .auth-toggle__icon--show {
  display: none;
}

.auth-toggle.is-active .auth-toggle__icon--hide {
  display: block;
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.auth-meta__hint {
  color: var(--auth-muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.auth-check,
.login-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-copy);
  font-size: 0.98rem;
  line-height: 1.4;
}

.auth-check input,
.login-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 6px;
  border: 1.6px solid rgba(187, 151, 109, 0.62);
  background: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-check input::before,
.login-checkbox input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 0.16s ease;
}

.auth-check input:checked,
.login-checkbox input[type="checkbox"]:checked {
  background: var(--auth-primary);
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(187, 151, 109, 0.13);
}

.auth-check input:checked::before,
.login-checkbox input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

.auth-check span,
.login-checkbox label {
  cursor: pointer;
}

.login-checkbox span,
.login-checkbox svg {
  display: none;
}

.auth-submit,
.login-btn {
  width: 100%;
  min-height: 58px;
  border: none;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-deep) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 20px 36px rgba(148, 110, 66, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.auth-submit:hover,
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(148, 110, 66, 0.28);
  filter: saturate(1.05);
}

.auth-submit:focus-visible,
.login-btn:focus-visible,
.auth-toggle:focus-visible {
  outline: 3px solid rgba(187, 151, 109, 0.28);
  outline-offset: 2px;
}

.auth-submit svg {
  width: 18px;
  height: 18px;
}

.auth-feedback {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-feedback--error {
  color: #c94545;
}

.auth-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  color: var(--auth-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.auth-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--auth-accent);
}

.auth-footnote {
  margin: 8px 0 0;
  color: var(--auth-copy);
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.6;
}

.auth-link,
.login-link {
  color: var(--auth-primary-deep);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-link:hover,
.login-link:hover {
  color: var(--auth-primary);
}

@supports selector(body:has(.auth-page)) {
  body:has(.auth-page) .header-area {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(249, 249, 249, 0.98) !important;
  }

  body:has(.auth-page) .header-area.sticky-header {
    position: sticky !important;
    animation: none !important;
  }
}

.login-container {
  min-height: calc(100vh - 82px);
  padding: 48px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(187, 151, 109, 0.14), transparent 26%),
    linear-gradient(135deg, #faf5ee 0%, #ffffff 44%, #f3ede6 100%);
}

.login-form-wrapper {
  width: min(100%, 460px);
  padding: 34px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(187, 151, 109, 0.18);
  border-radius: 28px;
  box-shadow: var(--auth-shadow-soft);
}

.login-header h1,
.login-header h2 {
  margin: 16px 0 10px;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--auth-ink);
}

.login-header p {
  margin: 0 0 24px;
  color: var(--auth-copy);
  line-height: 1.7;
}

.login-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-accent) 100%);
  box-shadow: 0 18px 30px rgba(73, 98, 80, 0.2);
  color: #fff;
}

.login-container .login-field {
  margin-top: 0;
}

.login-container form {
  display: grid;
  gap: 16px;
}

.login-checkbox {
  margin-top: 0;
}

.login-btn {
  margin-top: 0;
  text-decoration: none;
}

.login-btn span {
  color: inherit;
  transform: none;
}

@media (max-width: 1023px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: 360px;
    padding: 28px 24px;
  }

  .auth-showcase::before {
    inset: 14px;
  }
}

@media (max-width: 767px) {
  .auth-page {
    min-height: auto;
    padding: 26px 14px 48px;
  }

  .auth-page--login .auth-showcase,
  .auth-page--register .auth-showcase {
    display: none;
  }

  .auth-shell {
    border-radius: 24px;
  }

  .auth-panel {
    padding: 28px 20px;
  }

  .auth-showcase {
    min-height: 300px;
    padding: 22px 18px;
  }

  .auth-showcase__feature {
    grid-template-columns: 1fr;
  }

  .auth-showcase__feature-index {
    width: 42px;
  }

  .auth-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-country-picker {
    left: 46px;
    width: 98px;
  }

  .auth-phone-number {
    padding-left: 158px;
  }

  .login-form-wrapper {
    padding: 28px 22px;
  }
}

.dark .auth-page,
.dark .login-container {
  background:
    radial-gradient(circle at top left, rgba(187, 151, 109, 0.1), transparent 30%),
    linear-gradient(135deg, #171411 0%, #201a16 55%, #211d18 100%);
}

.dark .auth-shell {
  background: rgba(29, 24, 20, 0.86);
  border-color: rgba(255, 255, 255, 0.07);
}

.dark .auth-panel,
.dark .login-form-wrapper {
  background: linear-gradient(180deg, rgba(31, 26, 22, 0.95), rgba(25, 21, 18, 0.96));
}

.dark .auth-panel__title,
.dark .auth-label,
.dark .login-label,
.dark .login-header h1,
.dark .login-header h2 {
  color: #fff;
}

.dark .auth-panel__copy,
.dark .auth-footnote,
.dark .auth-check,
.dark .login-checkbox,
.dark .login-header p {
  color: rgba(255, 255, 255, 0.72);
}

.dark .auth-meta__hint,
.dark .auth-note {
  color: rgba(255, 255, 255, 0.58);
}

.dark .auth-input,
.dark .login-field {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.dark .auth-country-picker__button {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dark .auth-country-picker__code,
.dark .auth-country-picker__option-code {
  color: #fff;
}

.dark .auth-country-picker__menu {
  border-color: rgba(255, 255, 255, 0.1);
  background: #211d18;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.dark .auth-country-picker__option {
  color: #fff;
}

.dark .auth-country-picker__option:hover,
.dark .auth-country-picker__option:focus-visible,
.dark .auth-country-picker__option[aria-selected="true"] {
  background: rgba(187, 151, 109, 0.18);
}

.dark .auth-country-picker__short {
  color: rgba(255, 255, 255, 0.62);
}

.dark .auth-input::placeholder,
.dark .login-field::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.dark .auth-input-icon,
.dark .auth-toggle {
  color: rgba(255, 255, 255, 0.55);
}

.dark .auth-check input,
.dark .login-checkbox input[type="checkbox"] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.24);
}

.dark .auth-panel__eyebrow {
  color: #f4d7b4;
  background: rgba(187, 151, 109, 0.16);
  border-color: rgba(187, 151, 109, 0.22);
}

/* Black and white account theme to match the CAROM logo. */
:root {
  --auth-primary: #000000;
  --auth-primary-deep: #111111;
  --auth-accent: #2b2b2b;
  --auth-ink: #050505;
  --auth-copy: #3e3e3e;
  --auth-muted: #737373;
  --auth-surface: #ffffff;
  --auth-panel: #ffffff;
  --auth-line: #d8d8d8;
  --auth-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  --auth-shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.auth-page,
.login-container {
  background: #f7f7f7 !important;
}

.auth-page::before,
.auth-page::after {
  display: none !important;
}

.auth-shell,
.login-form-wrapper {
  border: 1px solid var(--auth-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: var(--auth-shadow) !important;
}

.auth-showcase {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.88) 100%),
    var(--auth-showcase-image) !important;
  filter: grayscale(1);
}

.auth-showcase::before {
  border-color: rgba(255, 255, 255, 0.24) !important;
  border-radius: 8px !important;
}

.auth-showcase__eyebrow,
.auth-panel__eyebrow {
  border-radius: 4px !important;
  letter-spacing: 0.13em;
}

.auth-showcase__eyebrow {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.auth-showcase__title,
.auth-showcase__feature h3 {
  color: #ffffff !important;
}

.auth-showcase__copy,
.auth-showcase__feature p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.auth-showcase__feature {
  border-radius: 8px !important;
  background: rgba(0, 0, 0, 0.48) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.auth-showcase__feature-index {
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #000000 !important;
}

.auth-panel,
.dark .auth-panel,
.dark .login-form-wrapper {
  background: #ffffff !important;
}

.auth-panel::before {
  display: none !important;
}

.auth-panel__eyebrow,
.dark .auth-panel__eyebrow {
  color: #000000 !important;
  background: #f2f2f2 !important;
  border-color: var(--auth-line) !important;
}

.auth-panel__title,
.auth-label,
.login-label,
.login-header h1,
.login-header h2,
.dark .auth-panel__title,
.dark .auth-label,
.dark .login-label,
.dark .login-header h1,
.dark .login-header h2 {
  color: var(--auth-ink) !important;
}

.auth-panel__copy,
.auth-footnote,
.auth-check,
.login-checkbox,
.login-header p,
.dark .auth-panel__copy,
.dark .auth-footnote,
.dark .auth-check,
.dark .login-checkbox,
.dark .login-header p {
  color: var(--auth-copy) !important;
}

.auth-meta__hint,
.auth-note,
.dark .auth-meta__hint,
.dark .auth-note {
  color: var(--auth-muted) !important;
}

.auth-input,
.login-field,
.dark .auth-input,
.dark .login-field {
  border-color: var(--auth-line) !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: var(--auth-ink) !important;
  box-shadow: none !important;
}

.auth-input:focus,
.login-field:focus {
  border-color: #000000 !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08) !important;
}

.auth-input-icon,
.auth-toggle,
.auth-country-picker__chevron,
.dark .auth-input-icon,
.dark .auth-toggle {
  color: #4b4b4b !important;
}

.auth-toggle:hover {
  color: #000000 !important;
  background: #eeeeee !important;
}

.auth-country-picker__button,
.dark .auth-country-picker__button {
  border-color: var(--auth-line) !important;
  color: #000000 !important;
}

.auth-country-picker__code,
.auth-country-picker__option-code,
.dark .auth-country-picker__code,
.dark .auth-country-picker__option-code {
  color: #000000 !important;
}

.auth-country-picker__flag {
  background-color: #efefef !important;
  box-shadow: 0 0 0 1px #d7d7d7 !important;
  filter: grayscale(1);
}

.auth-country-picker__menu,
.dark .auth-country-picker__menu {
  border-color: var(--auth-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12) !important;
}

.auth-country-picker__option,
.dark .auth-country-picker__option {
  border-radius: 4px !important;
  color: #000000 !important;
}

.auth-country-picker__option:hover,
.auth-country-picker__option:focus-visible,
.auth-country-picker__option[aria-selected="true"],
.dark .auth-country-picker__option:hover,
.dark .auth-country-picker__option:focus-visible,
.dark .auth-country-picker__option[aria-selected="true"] {
  background: #eeeeee !important;
}

.auth-country-picker__short,
.dark .auth-country-picker__short {
  color: #5f5f5f !important;
}

.auth-check input,
.login-checkbox input[type="checkbox"],
.dark .auth-check input,
.dark .login-checkbox input[type="checkbox"] {
  border-color: #777777 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
}

.auth-check input:checked,
.login-checkbox input[type="checkbox"]:checked {
  background: #000000 !important;
  border-color: #000000 !important;
  box-shadow: none !important;
}

.auth-submit,
.login-btn {
  border: 1px solid #000000 !important;
  border-radius: 4px !important;
  background: #000000 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.auth-submit:hover,
.login-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: none !important;
  filter: none !important;
}

.auth-submit:focus-visible,
.login-btn:focus-visible,
.auth-toggle:focus-visible,
.auth-country-picker__button:focus-visible {
  outline: 2px solid #000000 !important;
  outline-offset: 2px !important;
}

.auth-link,
.login-link {
  color: #000000 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link:hover,
.login-link:hover {
  color: #4b4b4b !important;
}

.auth-note svg,
.login-icon {
  color: #000000 !important;
}

.login-icon {
  background: #f2f2f2 !important;
  box-shadow: none !important;
}

/* Softer brand auth pass: keep logo clarity without making the page flat black/white. */
:root {
  --auth-primary: #bb976d;
  --auth-primary-deep: #946e42;
  --auth-accent: #496250;
  --auth-ink: #201a16;
  --auth-copy: #61584d;
  --auth-muted: #8d8376;
  --auth-surface: #fffdfa;
  --auth-panel: rgba(255, 255, 255, 0.94);
  --auth-line: rgba(187, 151, 109, 0.22);
  --auth-shadow: 0 28px 80px rgba(43, 29, 15, 0.12);
  --auth-shadow-soft: 0 14px 30px rgba(43, 29, 15, 0.08);
}

.auth-page,
.login-container {
  background:
    radial-gradient(circle at top left, rgba(187, 151, 109, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(73, 98, 80, 0.1), transparent 24%),
    linear-gradient(135deg, #f8f4ef 0%, #ffffff 48%, #f5eee6 100%) !important;
}

.auth-page::before,
.auth-page::after {
  display: block !important;
}

.auth-page::before {
  background: radial-gradient(circle, rgba(187, 151, 109, 0.13), transparent 72%) !important;
}

.auth-page::after {
  background: radial-gradient(circle, rgba(73, 98, 80, 0.1), transparent 70%) !important;
}

.auth-shell,
.login-form-wrapper {
  border: 1px solid rgba(187, 151, 109, 0.18) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--auth-shadow) !important;
}

.auth-showcase {
  background-image:
    linear-gradient(180deg, rgba(23, 18, 13, 0.12) 0%, rgba(23, 18, 13, 0.38) 45%, rgba(23, 18, 13, 0.78) 100%),
    var(--auth-showcase-image) !important;
  filter: none !important;
}

.auth-showcase::before {
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-radius: 18px !important;
}

.auth-showcase__eyebrow,
.auth-panel__eyebrow {
  border-radius: 999px !important;
}

.auth-showcase__feature {
  border-radius: 16px !important;
  background: rgba(32, 26, 22, 0.44) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.auth-showcase__feature-index {
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.auth-panel,
.dark .auth-panel,
.dark .login-form-wrapper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 249, 242, 0.96)),
    var(--auth-panel) !important;
}

.auth-panel__eyebrow,
.dark .auth-panel__eyebrow {
  color: var(--auth-primary-deep) !important;
  background: rgba(187, 151, 109, 0.12) !important;
  border-color: rgba(187, 151, 109, 0.2) !important;
}

.auth-input,
.login-field,
.dark .auth-input,
.dark .login-field {
  border-color: var(--auth-line) !important;
  border-radius: 16px !important;
  background: var(--auth-surface) !important;
}

.auth-input:focus,
.login-field:focus {
  border-color: rgba(187, 151, 109, 0.78) !important;
  box-shadow: 0 0 0 4px rgba(187, 151, 109, 0.14) !important;
}

.auth-input-icon,
.auth-toggle,
.auth-country-picker__chevron,
.dark .auth-input-icon,
.dark .auth-toggle {
  color: var(--auth-primary-deep) !important;
}

.auth-toggle:hover {
  color: var(--auth-primary-deep) !important;
  background: rgba(187, 151, 109, 0.08) !important;
}

.auth-country-picker__flag {
  filter: none !important;
}

.auth-country-picker__menu,
.dark .auth-country-picker__menu {
  border-color: rgba(187, 151, 109, 0.2) !important;
  border-radius: 14px !important;
  background: #fffdfa !important;
  box-shadow: 0 18px 42px rgba(43, 29, 15, 0.16) !important;
}

.auth-country-picker__option {
  border-radius: 10px !important;
}

.auth-country-picker__option:hover,
.auth-country-picker__option:focus-visible,
.auth-country-picker__option[aria-selected="true"] {
  background: rgba(187, 151, 109, 0.12) !important;
}

.auth-check input,
.login-checkbox input[type="checkbox"],
.dark .auth-check input,
.dark .login-checkbox input[type="checkbox"] {
  border-color: rgba(187, 151, 109, 0.62) !important;
  border-radius: 6px !important;
}

.auth-check input:checked,
.login-checkbox input[type="checkbox"]:checked {
  background: var(--auth-primary) !important;
  border-color: var(--auth-primary) !important;
  box-shadow: 0 0 0 4px rgba(187, 151, 109, 0.13) !important;
}

.auth-submit,
.login-btn {
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-deep) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 20px 36px rgba(148, 110, 66, 0.22) !important;
}

.auth-submit:hover,
.login-btn:hover {
  background: linear-gradient(135deg, var(--auth-primary-deep) 0%, var(--auth-primary) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 24px 40px rgba(148, 110, 66, 0.24) !important;
}

.auth-submit:focus-visible,
.login-btn:focus-visible,
.auth-toggle:focus-visible,
.auth-country-picker__button:focus-visible {
  outline: 3px solid rgba(187, 151, 109, 0.28) !important;
}

.auth-link,
.login-link {
  color: var(--auth-primary-deep) !important;
  text-decoration: none;
}

.auth-link:hover,
.login-link:hover {
  color: var(--auth-primary) !important;
}

.auth-note svg {
  color: var(--auth-accent) !important;
}

.login-icon {
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-accent) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 30px rgba(73, 98, 80, 0.2) !important;
}


