:root,
[data-auth-theme="light"] {
  color-scheme: light;
  --auth-bg: #f3f7f6;
  --auth-surface: #ffffff;
  --auth-surface-soft: #f7faf9;
  --auth-shell-bg: rgba(255,255,255,.88);
  --auth-panel-bg: rgba(255,255,255,.76);
  --auth-card-bg: rgba(255,255,255,.98);
  --auth-text: #1f2d2b;
  --auth-text-muted: #657572;
  --auth-secondary-text: #53635f;
  --auth-border: rgba(0,105,92,.14);
  --auth-input-bg: #ffffff;
  --auth-placeholder: #82918e;
  --auth-focus: rgba(0,105,92,.10);
  --auth-shadow: 0 24px 58px rgba(0,77,64,.11);
  --auth-card-shadow: 0 12px 28px rgba(0,77,64,.065);
  --auth-primary: #00695c;
  --auth-primary-strong: #004d40;
  --auth-primary-soft: #e0f2f1;
  --auth-accent-end: #26a69a;
  --auth-primary-contrast: #ffffff;
  --auth-google-bg: #ffffff;
  --auth-google-hover: #f8fbfa;
  --auth-divider-bg: #ffffff;
  --auth-danger-bg: #fff5f5;
  --auth-danger-text: #991b1b;
  --auth-success-bg: #f2fbf5;
  --auth-success-text: #166534;
  --auth-warning-bg: #fff8e6;
  --auth-warning-text: #854d0e;
  --auth-page-glow: rgba(0,105,92,.10);
  --auth-dropdown-shadow: 0 18px 38px rgba(15,23,42,.14);
  --cd-primary: var(--auth-primary);
  --cd-primary-strong: var(--auth-primary-strong);
  --cd-primary-soft: var(--auth-primary-soft);
  --cd-surface: var(--auth-surface);
  --cd-surface-soft: var(--auth-bg);
  --cd-border: var(--auth-border);
  --cd-text: var(--auth-text);
  --cd-muted: var(--auth-text-muted);
  --cd-shadow: var(--auth-shadow);
  --auth-shell-radius: 30px;
  --auth-card-radius: 22px;
  --auth-control-radius: 14px;
  --auth-desktop-width: min(1180px, calc(100vw - 64px));
  --auth-desktop-min-height: clamp(600px, 72vh, 680px);
  --auth-brand-panel-start: #edf3ff;
  --auth-brand-panel-end: #ffffff;
  --auth-brand-stripe: #004d40;
  --auth-brand-stripe-contrast: #ffffff;
  --auth-brand-card-bg: rgba(255,255,255,.90);
  --auth-brand-text: #1f2d2b;
  --auth-brand-muted: #657572;
  --auth-brand-accent: #00695c;
}

[data-auth-theme="dark"] {
  color-scheme: dark;
  --auth-bg: #0f1917;
  --auth-surface: #172320;
  --auth-surface-soft: #1b2a27;
  --auth-shell-bg: rgba(20,34,31,.94);
  --auth-panel-bg: rgba(17,30,27,.88);
  --auth-card-bg: rgba(25,40,36,.98);
  --auth-text: #edf7f4;
  --auth-text-muted: #a9bbb6;
  --auth-secondary-text: #b7c8c3;
  --auth-border: rgba(169,211,201,.19);
  --auth-input-bg: #12201d;
  --auth-placeholder: #839a94;
  --auth-focus: rgba(57,190,171,.18);
  --auth-shadow: 0 24px 62px rgba(0,0,0,.28);
  --auth-card-shadow: 0 12px 30px rgba(0,0,0,.18);
  --auth-primary: #31b7a5;
  --auth-primary-strong: #8ad9ce;
  --auth-primary-soft: rgba(49,183,165,.15);
  --auth-accent-end: #269d90;
  --auth-primary-contrast: #071310;
  --auth-google-bg: #1b2b27;
  --auth-google-hover: #223631;
  --auth-divider-bg: #192824;
  --auth-danger-bg: #351d20;
  --auth-danger-text: #ffb4bb;
  --auth-success-bg: #173126;
  --auth-success-text: #9de7b7;
  --auth-warning-bg: #352b17;
  --auth-warning-text: #f2d38a;
  --auth-page-glow: rgba(49,183,165,.10);
  --auth-dropdown-shadow: 0 20px 44px rgba(0,0,0,.32);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-auth-theme="light"]):not([data-auth-theme="dark"]) {
    color-scheme: dark;
    --auth-bg: #0f1917;
    --auth-surface: #172320;
    --auth-surface-soft: #1b2a27;
    --auth-shell-bg: rgba(20,34,31,.94);
    --auth-panel-bg: rgba(17,30,27,.88);
    --auth-card-bg: rgba(25,40,36,.98);
    --auth-text: #edf7f4;
    --auth-text-muted: #a9bbb6;
    --auth-secondary-text: #b7c8c3;
    --auth-border: rgba(169,211,201,.19);
    --auth-input-bg: #12201d;
    --auth-placeholder: #839a94;
    --auth-focus: rgba(57,190,171,.18);
    --auth-shadow: 0 24px 62px rgba(0,0,0,.28);
    --auth-card-shadow: 0 12px 30px rgba(0,0,0,.18);
    --auth-primary: #31b7a5;
    --auth-primary-strong: #8ad9ce;
    --auth-primary-soft: rgba(49,183,165,.15);
    --auth-accent-end: #269d90;
    --auth-primary-contrast: #071310;
    --auth-google-bg: #1b2b27;
    --auth-google-hover: #223631;
    --auth-divider-bg: #192824;
    --auth-danger-bg: #351d20;
    --auth-danger-text: #ffb4bb;
    --auth-success-bg: #173126;
    --auth-success-text: #9de7b7;
    --auth-warning-bg: #352b17;
    --auth-warning-text: #f2d38a;
    --auth-page-glow: rgba(49,183,165,.10);
    --auth-dropdown-shadow: 0 20px 44px rgba(0,0,0,.32);
  }
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: "Manrope", sans-serif; color: var(--auth-text); background: var(--auth-bg); }

.auth-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, var(--auth-page-glow), transparent 32%), linear-gradient(180deg, var(--auth-surface) 0%, var(--auth-bg) 100%);
}
.auth-background__cover { position: absolute; inset: 0 0 auto; width: 100%; height: 34vh; background: linear-gradient(160deg, var(--auth-primary) 0%, var(--auth-accent-end) 100%); }
.auth-layout { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 18px 14px; }
.auth-shell { width: 100%; }
.auth-shell--login { max-width: 430px; }
.auth-shell--signup { max-width: 540px; }
.auth-brand-panel { display: none; }
.auth-form-panel { width: 100%; }
.auth-mobile-header { display: block; }
.auth-mobile-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.auth-mobile-brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.auth-mobile-brand p { margin: 0; }

/* Langage visuel commun des formulaires d'authentification. */
.auth-layout .login-box {
  border: 1px solid var(--cd-border);
  border-radius: var(--auth-card-radius);
  background: var(--auth-card-bg);
  box-shadow: var(--auth-card-shadow);
  backdrop-filter: blur(12px);
}

.auth-layout .login-head {
  margin: 0 0 10px !important;
  color: var(--cd-text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.auth-layout .login-head i {
  margin-right: 8px !important;
  color: var(--cd-primary);
  font-size: 20px;
  vertical-align: -.08em;
}

.auth-layout .login-sub {
  color: var(--cd-muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-layout .form-label {
  margin-bottom: 6px;
  color: var(--cd-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.auth-layout .form-control {
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--cd-border);
  border-radius: var(--auth-control-radius);
  background: var(--auth-input-bg);
  color: var(--cd-text);
  font-size: 14px;
  box-shadow: none;
}

.auth-layout .form-control::placeholder { color: var(--auth-placeholder); }
.auth-layout .form-control:focus {
  border-color: rgba(0,105,92,.45);
  outline: 0;
  box-shadow: 0 0 0 3px var(--auth-focus);
}

.auth-layout .form-control:focus-visible {
  border-color: var(--cd-primary);
  outline: 0;
  box-shadow: 0 0 0 3px var(--auth-focus);
}

.auth-layout .iti {
  width: 100%;
}

.auth-layout .iti .form-control {
  width: 100%;
}

.auth-layout .iti__country-container {
  border-radius: var(--auth-control-radius) 0 0 var(--auth-control-radius);
}

.auth-layout .iti__selected-country {
  border-radius: var(--auth-control-radius) 0 0 var(--auth-control-radius);
}

.auth-layout .iti__selected-country:hover,
.auth-layout .iti__selected-country:focus-visible {
  background: var(--cd-primary-soft);
}

.iti--container {
  z-index: 1100;
}

.iti--container .iti__dropdown-content {
  overflow: hidden;
  border: 1px solid var(--cd-border);
  border-radius: var(--auth-control-radius);
  background: var(--auth-surface);
  color: var(--auth-text);
  box-shadow: var(--auth-dropdown-shadow);
}

.iti--container .iti__search-input {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--cd-border);
  background: var(--auth-input-bg);
  color: var(--auth-text);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  outline: none;
}

.iti--container .iti__country-list {
  color: var(--auth-text);
  scrollbar-color: var(--auth-primary) var(--auth-surface-soft);
}

.iti--container .iti__country:hover,
.iti--container .iti__country[aria-selected="true"] {
  background: var(--auth-primary-soft);
}

.iti--container .iti__search-input:focus-visible {
  box-shadow: inset 0 -2px var(--cd-primary);
}

.iti--container .iti__country.iti__highlight {
  background: var(--cd-primary-soft);
}

.auth-layout .form-text {
  color: var(--auth-secondary-text) !important;
  font-size: 12px;
  line-height: 1.5;
}

.auth-layout .password-field {
  position: relative;
}

.auth-layout .password-field .form-control {
  padding-right: 82px;
}

.auth-layout .password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  min-width: 62px;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--cd-primary);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.auth-layout .password-toggle:hover {
  background: var(--cd-primary-soft);
}

.auth-layout .password-toggle:focus-visible {
  outline: 2px solid rgba(0,105,92,.38);
  outline-offset: 1px;
}

.auth-layout .btn-primary,
.auth-layout .btn-google,
.auth-layout .btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--auth-control-radius);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.auth-layout .btn-primary {
  border: 0;
  background: linear-gradient(135deg,var(--auth-primary) 0%,var(--auth-accent-end) 100%);
  color: var(--auth-primary-contrast);
  box-shadow: 0 16px 28px rgba(0,105,92,.22);
}

.auth-layout .btn-primary:hover,
.auth-layout .btn-primary:focus {
  color: var(--auth-primary-contrast);
  background: linear-gradient(135deg,var(--auth-primary) 0%,var(--auth-accent-end) 100%);
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(0,105,92,.27);
}

.auth-layout .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(0,105,92,.2);
}

.auth-layout .btn-google {
  margin-top: 0;
  border: 1px solid var(--cd-border);
  background: var(--auth-google-bg);
  color: var(--auth-text);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

.auth-layout .btn-google:hover,
.auth-layout .btn-google:focus {
  color: var(--auth-text);
  border-color: rgba(0,105,92,.26);
  background: var(--auth-google-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15,23,42,.09);
}

.auth-layout .btn-google:active,
.auth-layout .btn-outline-primary:active {
  transform: translateY(0);
}

.auth-layout .btn-google .bi-google {
  color: #4285f4;
  font-size: 18px;
}

.auth-layout .btn-outline-primary {
  border: 1px solid rgba(0,105,92,.18);
  background: var(--auth-input-bg);
  color: var(--cd-primary);
  box-shadow: none;
}

.auth-layout .btn-outline-primary:hover,
.auth-layout .btn-outline-primary:focus {
  border-color: rgba(0,105,92,.3);
  background: var(--auth-primary-soft);
  color: var(--cd-primary-strong);
}

.auth-layout .btn-primary:focus-visible,
.auth-layout .btn-google:focus-visible,
.auth-layout .btn-outline-primary:focus-visible,
.auth-layout a:focus-visible {
  outline: 2px solid rgba(0,105,92,.48);
  outline-offset: 3px;
}

.auth-layout .btn:disabled,
.auth-layout .btn-google[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .62;
  transform: none;
  box-shadow: none;
}

.auth-shell--login .utility {
  min-height: 32px;
  align-items: center !important;
}

.auth-shell--login .form-check {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.auth-shell--login .form-check-label {
  display: inline-flex !important;
  align-items: center;
  min-height: 32px;
  margin: 0;
  cursor: pointer;
}

.auth-shell--login .form-check-input {
  width: 17px;
  height: 17px;
  margin: 0 8px 0 0 !important;
  border-color: rgba(0,105,92,.38);
  cursor: pointer;
}

.auth-shell--login .form-check-input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0,105,92,.12);
}

.auth-shell--login .form-check-input:checked {
  border-color: var(--cd-primary);
  background-color: var(--cd-primary);
}

.auth-shell--login .utility .semibold-text {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0 !important;
}

.auth-shell--login .btn .bi,
.auth-shell--login .btn-google .bi,
.auth-shell--login .semibold-text .bi {
  font-size: 17px !important;
  line-height: 1;
  vertical-align: middle;
}

.auth-layout .login-divider {
  position: relative;
  margin: 16px 0 14px;
  text-align: center;
}

.auth-layout .login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1px solid var(--cd-border);
}

.auth-layout .login-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: var(--auth-divider-bg);
  color: var(--cd-muted);
  font-size: 12px;
}

.auth-layout .alert-danger {
  border-color: var(--auth-border);
  background: var(--auth-danger-bg);
  color: var(--auth-danger-text);
}

.auth-layout .alert-success {
  border-color: var(--auth-border);
  background: var(--auth-success-bg);
  color: var(--auth-success-text);
}

.auth-layout .alert-warning {
  border-color: var(--auth-border);
  background: var(--auth-warning-bg);
  color: var(--auth-warning-text);
}

.auth-layout .alert-info {
  border-color: var(--auth-border);
  background: var(--auth-primary-soft);
  color: var(--auth-primary-strong);
}

.auth-layout .semibold-text a,
.auth-layout .link-login a,
.auth-layout .info-text a {
  color: var(--cd-primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-layout .semibold-text a:hover,
.auth-layout .link-login a:hover,
.auth-layout .info-text a:hover {
  color: var(--cd-primary-strong);
  text-decoration: underline;
}

/* La hauteur reste pilotée par resizeLoginBox(); seuls les espaces sont resserrés. */
.auth-shell--login .forget-form {
  padding: 28px 30px 26px !important;
}

.auth-layout .auth-shell--login .login-box .login-form,
.auth-layout .auth-shell--login .login-box .forget-form {
  bottom: auto;
}

.auth-shell--login .login-box,
.auth-shell--login .login-box.flipped {
  min-height: 0;
}

.auth-shell--login .forget-form .login-head {
  margin-bottom: 18px !important;
}

.auth-shell--login .forget-form .mb-3 {
  margin-bottom: 12px !important;
}

.auth-shell--login .forget-form .mt-3 {
  margin-top: 10px !important;
}

.auth-form-panel {
  position: relative;
}

.auth-theme-switcher {
  display: inline-flex;
  align-self: flex-end;
  gap: 3px;
  margin: 0 0 12px;
  padding: 3px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: var(--auth-surface-soft);
  box-shadow: 0 5px 14px rgba(0,0,0,.045);
}

.auth-theme-switcher__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--auth-text-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.auth-theme-switcher__button:hover {
  background: var(--auth-primary-soft);
  color: var(--auth-primary-strong);
}

.auth-theme-switcher__button[aria-pressed="true"] {
  background: var(--auth-surface);
  color: var(--auth-primary-strong);
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.auth-theme-switcher__button:focus-visible {
  outline: 2px solid var(--auth-primary);
  outline-offset: 2px;
}

@media (max-width: 1199.98px) {
  .auth-layout {
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(8px,2.8vw,16px) !important;
  }

  .auth-shell {
    width: min(100%, 540px);
    margin-inline: auto;
  }

  .auth-shell--login {
    max-width: 430px;
  }

  .auth-shell--signup {
    max-width: 540px;
  }

  .auth-form-panel {
    display: flex;
    flex-direction: column;
  }

  .auth-mobile-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(154px,34vw,190px);
    padding: calc(env(safe-area-inset-top, 0px) + clamp(38px,8vw,48px)) clamp(16px,5vw,28px) clamp(30px,7vw,42px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 26px 26px 30px 30px;
    background:
      radial-gradient(circle at 18% 0%, rgba(255,255,255,.17), transparent 38%),
      linear-gradient(145deg,#004d40 0%,#00796b 58%,#169b8c 100%);
    box-shadow: 0 18px 38px rgba(0,77,64,.19);
  }

  .auth-mobile-header::after {
    content: "";
    position: absolute;
    right: -12%;
    bottom: -42%;
    width: 62%;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    pointer-events: none;
  }

  .auth-mobile-brand {
    position: relative;
    z-index: 1;
    gap: clamp(4px,1.3vw,7px);
    margin: 0;
    color: #fff;
  }

  .auth-mobile-brand__logo {
    display: grid;
    place-items: center;
    width: clamp(58px,16vw,70px);
    height: clamp(58px,16vw,70px);
    margin-bottom: 1px;
    padding: clamp(6px,1.8vw,8px);
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 16px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 10px 24px rgba(0,45,39,.2);
  }

  .auth-mobile-brand__logo img {
    width: clamp(44px,13vw,56px);
    max-width: 100%;
    max-height: 56px;
  }

  .auth-mobile-brand strong {
    color: #fff;
    font-size: clamp(15px,4.2vw,18px);
    font-weight: 800;
    letter-spacing: clamp(.09em,.8vw,.15em);
    line-height: 1.2;
  }

  .auth-mobile-brand p {
    color: rgba(255,255,255,.82);
    font-size: clamp(11.5px,3.2vw,13px);
    font-weight: 500;
    line-height: 1.35;
  }

  .auth-mobile-header .auth-theme-switcher {
    position: absolute;
    z-index: 2;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 12px;
    gap: 2px;
    margin: 0;
    padding: 3px;
    border-color: rgba(255,255,255,.2);
    background: rgba(0,55,48,.22);
    box-shadow: none;
    backdrop-filter: blur(10px);
  }

  .auth-mobile-header .auth-theme-switcher__button {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    color: rgba(255,255,255,.76);
    font-size: 15px;
  }

  .auth-mobile-header .auth-theme-switcher__button span {
    display: none;
  }

  .auth-mobile-header .auth-theme-switcher__button:hover,
  .auth-mobile-header .auth-theme-switcher__button:focus-visible {
    background: rgba(255,255,255,.15);
    color: #fff;
  }

  .auth-mobile-header .auth-theme-switcher__button[aria-pressed="true"] {
    background: rgba(255,255,255,.94);
    color: #00695c;
    box-shadow: 0 4px 12px rgba(0,45,39,.14);
  }

  .auth-form-panel > .login-box {
    z-index: 3;
    width: calc(100% - clamp(12px,4vw,20px));
    margin: clamp(-20px,-4vw,-14px) auto 0;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .auth-layout {
    padding-inline: clamp(24px,6vw,72px) !important;
  }

  .auth-shell--login {
    width: min(100%, 560px);
    max-width: 560px;
  }

  .auth-shell--signup {
    width: min(100%, 680px);
    max-width: 680px;
  }
}

@media (min-width: 1200px) {
  .auth-background__cover { display: none; }
  .auth-layout { padding: 30px; }
  .auth-shell { display: grid; width: var(--auth-desktop-width); max-width: none; min-height: var(--auth-desktop-min-height); height: auto; max-height: none; border: 1px solid var(--auth-border); border-radius: var(--auth-shell-radius); background: var(--auth-shell-bg); box-shadow: var(--auth-shadow); backdrop-filter: blur(16px); }
  .auth-shell--login { overflow: hidden; grid-template-columns: minmax(0,51fr) minmax(0,49fr); }
  .auth-shell--signup { overflow: visible; grid-template-columns: minmax(0,55fr) minmax(0,45fr); }
  .auth-layout--brand-left .auth-brand-panel { grid-column: 1; grid-row: 1; }
  .auth-layout--brand-left .auth-form-panel { grid-column: 2; grid-row: 1; }
  .auth-layout--brand-right .auth-form-panel { grid-column: 1; grid-row: 1; }
  .auth-layout--brand-right .auth-brand-panel { grid-column: 2; grid-row: 1; }
  .auth-brand-panel { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100%; padding: clamp(32px,4.5vw,56px); overflow: hidden; background: linear-gradient(135deg,var(--auth-brand-panel-start) 0%,var(--auth-brand-panel-end) 100%); }
  .auth-layout--brand-left .auth-brand-panel { border-radius: var(--auth-shell-radius) 0 0 var(--auth-shell-radius); }
  .auth-layout--brand-left .auth-form-panel { border-radius: 0 var(--auth-shell-radius) var(--auth-shell-radius) 0; }
  .auth-layout--brand-right .auth-form-panel { border-radius: var(--auth-shell-radius) 0 0 var(--auth-shell-radius); }
  .auth-layout--brand-right .auth-brand-panel { border-radius: 0 var(--auth-shell-radius) var(--auth-shell-radius) 0; }
  .auth-brand-panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 82%; background: repeating-linear-gradient(150deg,var(--auth-brand-stripe) 0 40px,var(--auth-brand-stripe-contrast) 40px 82px); clip-path: polygon(0 0,88% 0,100% 18%,100% 82%,88% 100%,0 100%); }
  .auth-layout--brand-right .auth-brand-panel::before { inset: 0 0 0 auto; clip-path: polygon(12% 0,100% 0,100% 100%,12% 100%,0 82%,0 18%); }
  .auth-brand-card { position: relative; z-index: 1; width: 100%; max-width: 330px; padding: 28px; border-radius: var(--auth-card-radius); background: var(--auth-brand-card-bg); box-shadow: 0 14px 32px rgba(0,77,64,.1); }
  .auth-brand-card__logo { display: block; width: 76px; height: 76px; margin-bottom: 18px; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0,105,92,.18)); }
  .auth-brand-card__name { display: inline-block; color: var(--auth-brand-accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
  .auth-brand-card__title { margin: 12px 0 10px; color: var(--auth-brand-text); font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
  .auth-brand-card__text { margin: 0; color: var(--auth-brand-muted); line-height: 1.65; }
  .auth-form-panel { display: flex; flex-direction: column; justify-content: center; background: var(--auth-panel-bg); }
  .auth-shell--login .auth-form-panel { padding: clamp(36px,5vw,64px) clamp(32px,5.3vw,68px); }
  .auth-shell--signup .auth-form-panel { align-items: center; padding: 24px clamp(28px,3vw,42px); }
  .auth-mobile-brand { display: none; }
  .auth-shell--login .auth-mobile-header { display: block; height: 24px; }
  .auth-shell--signup .auth-mobile-header { display: flex; align-items: flex-start; justify-content: flex-end; width: 100%; margin-bottom: 12px; }
  .auth-theme-switcher { position: absolute; top: 18px; right: 18px; z-index: 5; margin: 0; }
  .auth-shell--signup .auth-mobile-header .auth-theme-switcher { position: static; margin: 0; }
}

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

  .auth-layout .btn:hover,
  .auth-layout .btn-google:hover,
  .auth-layout .btn-primary:hover {
    transform: none;
  }
}

