:root {
  --bg: #eef5f1;
  --bg-deep: #103a57;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #fbfefd;
  --surface-soft: #e3f0ea;
  --text: #103a57;
  --muted: #456a73;
  --line: rgba(16, 58, 87, 0.12);
  --brand: #307b8e;
  --brand-dark: #103a57;
  --brand-soft: rgba(48, 123, 142, 0.12);
  --accent: #366b2b;
  --accent-soft: rgba(54, 107, 43, 0.14);
  --success: #366b2b;
  --danger: #b74343;
  --info: #307b8e;
  --shadow-sm: 0 18px 38px rgba(16, 58, 87, 0.08);
  --shadow-md: 0 28px 60px rgba(16, 58, 87, 0.13);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --transition: 220ms ease;
}

.is-hidden {
  display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body.auth-page {
  margin: 0;
  height: 100dvh;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 162, 75, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(159, 61, 52, 0.18), transparent 28%),
    linear-gradient(180deg, #fffdfa 0%, var(--bg) 52%, #f1e9dc 100%);
}

body.auth-page--recovery {
  overflow: hidden;
}

body.auth-page--login {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a,
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-stage {
  position: relative;
  min-height: 100vh;
  padding: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-stage::before,
.auth-stage::after {
  content: "";
  position: fixed;
  inset: auto auto 0 0;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
  opacity: 0.55;
}

.auth-stage::before {
  top: -9rem;
  left: -7rem;
  background: radial-gradient(circle, rgba(159, 61, 52, 0.18), transparent 65%);
}

.auth-stage::after {
  right: -7rem;
  bottom: -8rem;
  left: auto;
  background: radial-gradient(circle, rgba(215, 162, 75, 0.18), transparent 62%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, 100%);
  min-height: min(860px, calc(100vh - 2.7rem));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.auth-shell.loaded,
.recovery-container {
  opacity: 1;
  transform: none;
}

.auth-story,
.auth-panel {
  min-width: 0;
}

.auth-story {
  position: relative;
  flex: 1.06;
  display: grid;
  align-content: space-between;
  gap: 1.4rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  color: #fff8ef;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(243, 196, 108, 0.2), transparent 24%),
    linear-gradient(160deg, #8a352d 0%, #6f2d28 36%, #172033 100%);
}

.auth-story::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 66%);
  pointer-events: none;
}

.auth-story__top,
.auth-story__body,
.auth-story__bottom {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.auth-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 244, 225, 0.95), rgba(255, 227, 161, 0.88));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.auth-brand__mark img {
  display: none;
}

.auth-brand__mark::before {
  content: "M";
  font-family: "Manrope", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.auth-brand__copy {
  display: grid;
  gap: 0.1rem;
}

.auth-brand__copy strong,
.auth-brand__copy span {
  font-family: "Manrope", sans-serif;
}

.auth-brand__copy strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.auth-brand__copy small {
  color: rgba(255, 248, 239, 0.72);
  font-size: 0.9rem;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.12);
  border: 1px solid rgba(255, 248, 239, 0.18);
  color: #fff3de;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-story__heading {
  display: grid;
  gap: 1rem;
}

.auth-story__heading h1,
.auth-story__heading h2,
.auth-panel__header h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.02;
}

.auth-story__heading h1,
.auth-story__heading h2 {
  font-size: clamp(2.25rem, 3vw, 3.7rem);
  max-width: 11ch;
}

.auth-story__heading p,
.auth-panel__header p,
.auth-note,
.auth-help-card p,
.auth-kpi p,
.auth-step__description,
.input-hint,
.auth-code-note,
.auth-list li,
.panel-subtitle {
  margin: 0;
  color: rgba(255, 248, 239, 0.8);
  line-height: 1.7;
}

.auth-story__heading p {
  max-width: 54ch;
  font-size: 1.02rem;
}

.auth-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.auth-kpi {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 248, 239, 0.11);
  border: 1px solid rgba(255, 248, 239, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-kpi strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
}

.auth-kpi p {
  color: rgba(255, 248, 239, 0.78);
  font-size: 0.9rem;
}

.auth-preview-window {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 248, 239, 0.12);
  border: 1px solid rgba(255, 248, 239, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-preview-window__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-preview-window__top strong {
  font-size: 0.92rem;
  color: #fff8ef;
}

.auth-preview-window__dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.auth-preview-window__dots span {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.38);
}

.auth-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.auth-preview-card {
  display: grid;
  gap: 0.34rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(11, 18, 31, 0.26);
  border: 1px solid rgba(255, 248, 239, 0.1);
}

.auth-preview-card--wide {
  grid-column: 1 / -1;
}

.auth-preview-card__label {
  color: rgba(255, 248, 239, 0.66);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-preview-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.auth-preview-card p {
  margin: 0;
  color: rgba(255, 248, 239, 0.76);
  font-size: 0.88rem;
  line-height: 1.55;
}

.auth-steps {
  display: grid;
  gap: 0.8rem;
}

.auth-steps__label {
  margin: 0 0 0.2rem;
  color: rgba(255, 248, 239, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-step {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 248, 239, 0.08);
  border: 1px solid rgba(255, 248, 239, 0.1);
}

.auth-step.is-active {
  background: rgba(255, 248, 239, 0.14);
  border-color: rgba(255, 248, 239, 0.24);
}

.auth-step.is-complete {
  background: rgba(47, 143, 104, 0.18);
  border-color: rgba(96, 212, 163, 0.22);
}

.auth-step__number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 228, 161, 0.98), rgba(255, 245, 228, 0.92));
  color: var(--brand-dark);
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.auth-step.is-complete .auth-step__number {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.auth-step__copy {
  display: grid;
  gap: 0.22rem;
}

.auth-step__title {
  font-weight: 700;
  font-size: 0.98rem;
}

.auth-step__description {
  color: rgba(255, 248, 239, 0.72);
  font-size: 0.9rem;
}

.auth-help-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem;
  border-radius: 22px;
  background: rgba(11, 18, 31, 0.24);
  border: 1px solid rgba(255, 248, 239, 0.12);
}

.auth-help-card strong {
  font-size: 1rem;
}

.auth-help-card p {
  color: rgba(255, 248, 239, 0.72);
}

.auth-help-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.auth-help-card li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff8ef;
  font-size: 0.94rem;
}

.auth-help-card li i {
  color: #ffe4a1;
}

.auth-panel {
  flex: 0.94;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.9rem);
}

.auth-panel__content {
  width: min(460px, 100%);
  display: grid;
  gap: 1.35rem;
}

.auth-panel__header {
  display: grid;
  gap: 0.75rem;
}

.auth-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  min-height: 38px;
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(159, 61, 52, 0.12);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel__header h1 {
  font-size: clamp(2rem, 2.5vw, 3rem);
}

.auth-panel__header p,
.panel-subtitle,
.auth-note {
  color: var(--muted);
  font-size: 1rem;
}

.auth-panel__header p strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.auth-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: var(--shadow-sm);
}

.auth-card--soft {
  background: linear-gradient(180deg, rgba(159, 61, 52, 0.06), rgba(215, 162, 75, 0.08));
  border-color: rgba(159, 61, 52, 0.1);
}

.auth-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.auth-inline-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.05);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-inline-meta span i {
  color: var(--brand);
}

.auth-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-list li i {
  color: var(--success);
  margin-top: 0.18rem;
}

.alert {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.55;
}

.alert-success {
  background: rgba(47, 143, 104, 0.1);
  border-color: rgba(47, 143, 104, 0.2);
  color: var(--success);
}

.alert-error,
.alert-danger {
  background: rgba(183, 67, 67, 0.1);
  border-color: rgba(183, 67, 67, 0.2);
  color: var(--danger);
}

.alert-info,
.alert-warning {
  background: rgba(49, 93, 143, 0.08);
  border-color: rgba(49, 93, 143, 0.16);
  color: var(--info);
}

.login-form-content,
.recovery-form-content {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.input-shell,
.password-wrapper {
  position: relative;
}

.input-shell > i,
.input-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #8e98aa;
  pointer-events: none;
}

.password-wrapper .toggle-password {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

.input-shell input {
  padding-left: 2.9rem;
}

.password-wrapper input {
  padding-right: 3.75rem;
}

input::placeholder {
  color: #8794ab;
}

input:focus {
  outline: none;
  border-color: rgba(159, 61, 52, 0.48);
  box-shadow: 0 0 0 4px rgba(159, 61, 52, 0.12);
  background: #ffffff;
}

input.is-valid {
  border-color: rgba(47, 143, 104, 0.4);
  box-shadow: 0 0 0 4px rgba(47, 143, 104, 0.12);
}

input.is-invalid {
  border-color: rgba(183, 67, 67, 0.44);
  box-shadow: 0 0 0 4px rgba(183, 67, 67, 0.12);
}

.input-hint,
.password-requirements,
.password-match,
.auth-code-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.password-requirements,
.password-match {
  display: grid;
  gap: 0.45rem;
}

.requirement.met,
.match-text.valid {
  color: var(--success);
}

.requirement.unmet,
.match-text.invalid {
  color: var(--danger);
}

.toggle-password {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(23, 32, 51, 0.05);
  color: var(--text);
  transition:
    background-color var(--transition),
    transform var(--transition);
}

.toggle-password:hover,
.toggle-password:focus-visible {
  background: rgba(159, 61, 52, 0.12);
  transform: translateY(-50%) translateY(-1px);
}

.submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 56px;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 20px 36px rgba(159, 61, 52, 0.24);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.submit-btn:hover,
.submit-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 24px 40px rgba(159, 61, 52, 0.28);
}

.submit-btn:disabled {
  opacity: 0.76;
  cursor: wait;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  display: none;
  animation: auth-spin 700ms linear infinite;
}

.submit-btn.loading .btn-loader {
  display: inline-block;
}

.submit-btn.loading .btn-text {
  opacity: 0.88;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-footer,
.auth-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.form-footer p {
  margin: 0;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand);
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--brand-dark);
}

.auth-support {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.04), rgba(23, 32, 51, 0.02));
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.auth-support i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}

.auth-support strong {
  display: block;
  margin-bottom: 0.24rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
}

.auth-support p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.auth-code-box {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(159, 61, 52, 0.08), rgba(215, 162, 75, 0.1));
  border: 1px solid rgba(159, 61, 52, 0.1);
}

.auth-code-box strong {
  font-size: 0.98rem;
}

.auth-code-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

body.auth-page--login .auth-shell--login {
  min-height: 0;
  height: calc(100dvh - 2rem);
  flex-direction: row-reverse;
}

body.auth-page--login .auth-story--login {
  gap: 1rem;
  padding: 1.35rem 1.45rem;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(243, 196, 108, 0.18), transparent 24%),
    linear-gradient(165deg, #111b2d 0%, #7f3029 52%, #9f3d34 100%);
}

body.auth-page--login .auth-stage {
  min-height: 100dvh;
  height: 100dvh;
  padding: 1rem;
  overflow: hidden;
}

body.auth-page--login .auth-story__heading {
  gap: 0.8rem;
}

body.auth-page--login .auth-story__heading h1 {
  max-width: 12ch;
  font-size: clamp(2rem, 2.8vw, 3.1rem);
}

body.auth-page--login .auth-story__heading p {
  max-width: 48ch;
  font-size: 0.95rem;
  line-height: 1.62;
}

body.auth-page--login .auth-kpis {
  gap: 0.65rem;
}

body.auth-page--login .auth-kpi {
  padding: 0.85rem 0.92rem;
  border-radius: 18px;
}

body.auth-page--login .auth-kpi strong {
  font-size: 1.2rem;
}

body.auth-page--login .auth-kpi p {
  font-size: 0.82rem;
  line-height: 1.45;
}

body.auth-page--login .auth-preview-window {
  padding: 0.9rem;
  border-radius: 22px;
}

body.auth-page--login .auth-preview-window__top strong {
  font-size: 0.86rem;
}

body.auth-page--login .auth-preview-card {
  padding: 0.82rem;
  border-radius: 16px;
}

body.auth-page--login .auth-preview-card strong {
  font-size: 0.94rem;
}

body.auth-page--login .auth-preview-card p {
  font-size: 0.82rem;
  line-height: 1.5;
}

body.auth-page--login .auth-panel {
  padding: 1.35rem 1.45rem;
}

body.auth-page--login .auth-panel__content {
  width: min(430px, 100%);
  gap: 1rem;
}

body.auth-page--login .auth-panel__header {
  gap: 0.62rem;
}

body.auth-page--login .auth-panel__header h1 {
  font-size: clamp(1.95rem, 2.5vw, 2.7rem);
}

body.auth-page--login .auth-panel__header p {
  font-size: 0.95rem;
  line-height: 1.58;
}

body.auth-page--login .auth-card--soft,
body.auth-page--login .auth-support {
  padding: 0.95rem;
  border-radius: 20px;
}

body.auth-page--login .auth-inline-meta {
  gap: 0.5rem;
}

body.auth-page--login .auth-inline-meta span {
  min-height: 34px;
  padding: 0.48rem 0.72rem;
  font-size: 0.8rem;
}

body.auth-page--login input[type="text"],
body.auth-page--login input[type="email"],
body.auth-page--login input[type="password"] {
  min-height: 54px;
}

body.auth-page--login .submit-btn {
  min-height: 54px;
}

body.auth-page--recovery .auth-stage {
  min-height: 100dvh;
  height: 100dvh;
  padding: 1rem;
  overflow: hidden;
}

body.auth-page--recovery .auth-shell--recovery {
  height: calc(100dvh - 2rem);
  min-height: 0;
}

body.auth-page--recovery .auth-story {
  gap: 0.95rem;
  padding: 1.35rem 1.45rem;
}

body.auth-page--recovery .auth-story__heading {
  gap: 0.75rem;
}

body.auth-page--recovery .auth-story__heading h2 {
  max-width: 13ch;
  font-size: clamp(1.95rem, 2.6vw, 2.8rem);
}

body.auth-page--recovery .auth-story__heading p {
  font-size: 0.94rem;
  line-height: 1.62;
}

body.auth-page--recovery .auth-help-card {
  gap: 0.55rem;
  padding: 0.92rem 0.98rem;
  border-radius: 20px;
}

body.auth-page--recovery .auth-help-card ul {
  gap: 0.45rem;
}

body.auth-page--recovery .auth-help-card li {
  font-size: 0.9rem;
}

body.auth-page--recovery .auth-steps {
  gap: 0.55rem;
}

body.auth-page--recovery .auth-step {
  padding: 0.82rem 0.9rem;
  border-radius: 18px;
}

body.auth-page--recovery .auth-step__number {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

body.auth-page--recovery .auth-step__title {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

body.auth-page--recovery .auth-step__description {
  font-size: 0.84rem;
  line-height: 1.5;
}

body.auth-page--recovery .auth-panel {
  padding: 1.3rem 1.45rem;
}

body.auth-page--recovery .auth-panel__content {
  width: min(430px, 100%);
  gap: 1rem;
}

body.auth-page--recovery .auth-panel__header {
  gap: 0.6rem;
}

body.auth-page--recovery .auth-panel__header h1 {
  font-size: clamp(1.85rem, 2.2vw, 2.4rem);
}

body.auth-page--recovery .auth-panel__header p {
  font-size: 0.95rem;
  line-height: 1.6;
}

body.auth-page--recovery .auth-code-box,
body.auth-page--recovery .auth-card--soft {
  padding: 0.92rem 0.96rem;
  border-radius: 20px;
}

body.auth-page--recovery .recovery-form-content {
  gap: 0.9rem;
}

body.auth-page--recovery input[type="text"],
body.auth-page--recovery input[type="email"],
body.auth-page--recovery input[type="password"] {
  min-height: 52px;
}

body.auth-page--recovery .submit-btn {
  min-height: 54px;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  background:
    radial-gradient(circle at 20% 20%, rgba(215, 162, 75, 0.2), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(159, 61, 52, 0.22), transparent 26%),
    linear-gradient(160deg, rgba(15, 21, 33, 0.96), rgba(23, 32, 51, 0.98));
  opacity: 1;
  transition:
    opacity 800ms ease,
    transform 900ms ease;
}

.welcome-overlay.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.welcome-content {
  width: min(540px, calc(100% - 2rem));
  padding: 2.2rem 1.7rem;
  text-align: center;
  color: #fffaf3;
}

.welcome-logo {
  width: min(220px, 72vw);
  height: 96px;
  margin: 0 auto 1.6rem;
  display: grid;
  place-items: center;
  padding: 1rem 1.2rem;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 234, 186, 0.98), rgba(255, 245, 226, 0.92));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  opacity: 0;
  animation: auth-fade-in 700ms ease 220ms forwards;
  overflow: hidden;
}

.welcome-logo img {
  width: 100%;
  height: auto;
  max-width: 170px;
  object-fit: contain;
}

.welcome-title {
  margin: 0 0 0.7rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.05;
  background: linear-gradient(135deg, #fff4da, #ffe4a1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: auth-fade-up 800ms ease 400ms forwards;
}

.welcome-subtitle {
  margin: 0;
  color: rgba(255, 248, 239, 0.8);
  font-size: 1.04rem;
  line-height: 1.7;
  opacity: 0;
  animation: auth-fade-up 800ms ease 580ms forwards;
}

@keyframes auth-fade-in {
  to {
    opacity: 1;
  }
}

@keyframes auth-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(215, 162, 75, 0.45);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .auth-shell {
    min-height: auto;
  }

  .auth-story__heading h1,
  .auth-story__heading h2 {
    max-width: 14ch;
  }

  .auth-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .auth-preview-card--wide {
    grid-column: auto;
  }

  body.auth-page--login .auth-shell--login {
    flex-direction: column;
    height: calc(100dvh - 1.6rem);
  }

  body.auth-page--login .auth-story--login {
    padding: 1rem 1.1rem 0.95rem;
  }

  body.auth-page--login .auth-story__heading h1 {
    max-width: 100%;
    font-size: clamp(1.78rem, 4.9vw, 2.35rem);
  }

  body.auth-page--login .auth-kpis {
    display: none;
  }

  body.auth-page--login .auth-preview-window {
    padding: 0.82rem;
  }

  body.auth-page--login .auth-panel {
    padding: 1rem 1.1rem 1.05rem;
  }
}

@media (max-width: 820px) {
  .auth-stage {
    padding: 0.9rem;
    align-items: stretch;
  }

  .auth-shell {
    flex-direction: column;
    border-radius: 28px;
  }

  .auth-story,
  .auth-panel {
    padding: 1.25rem;
  }

  .auth-panel {
    align-items: stretch;
  }

  .auth-panel__content {
    width: 100%;
  }

  .auth-story__heading h1,
  .auth-story__heading h2 {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 3rem);
  }

  body.auth-page--recovery .auth-stage {
    padding: 0;
  }

  body.auth-page--recovery .auth-shell--recovery {
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  body.auth-page--recovery .auth-story {
    gap: 0.8rem;
    padding: 1rem 1rem 0.9rem;
  }

  body.auth-page--recovery .auth-story__heading h2 {
    max-width: 100%;
    font-size: clamp(1.7rem, 5.7vw, 2.25rem);
  }

  body.auth-page--recovery .auth-story__heading p {
    max-width: 100%;
    font-size: 0.9rem;
  }

  body.auth-page--recovery .auth-help-card {
    display: none;
  }

  body.auth-page--recovery .auth-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  body.auth-page--recovery .auth-steps__label {
    display: none;
  }

  body.auth-page--recovery .auth-step {
    min-height: 0;
    gap: 0.48rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.72rem;
  }

  body.auth-page--recovery .auth-step__description {
    display: none;
  }

  body.auth-page--recovery .auth-step__title {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  body.auth-page--recovery .auth-panel {
    padding: 1rem;
  }

  body.auth-page--recovery .auth-panel__content {
    gap: 0.85rem;
  }

  body.auth-page--recovery .auth-panel__eyebrow {
    min-height: 34px;
    padding: 0.46rem 0.72rem;
    font-size: 0.74rem;
  }

  body.auth-page--login .auth-stage {
    padding: 0;
  }

  body.auth-page--login .auth-shell--login {
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  body.auth-page--login .auth-story--login {
    gap: 0.72rem;
    padding: 0.95rem 0.95rem 0.8rem;
  }

  body.auth-page--login .auth-story__heading p {
    font-size: 0.88rem;
    line-height: 1.54;
  }

  body.auth-page--login .auth-preview-window {
    gap: 0.7rem;
  }

  body.auth-page--login .auth-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  body.auth-page--login .auth-preview-card--wide {
    grid-column: 1 / -1;
  }

  body.auth-page--login .auth-panel {
    padding: 0.95rem;
  }

  body.auth-page--login .auth-panel__content {
    gap: 0.85rem;
  }
}

@media (max-width: 620px) {
  .auth-stage {
    padding: 0;
  }

  .auth-shell {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .auth-story {
    gap: 1.2rem;
  }

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

  .auth-brand__mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .auth-brand__mark::before {
    font-size: 1.45rem;
  }

  .auth-card,
  .auth-support,
  .auth-help-card,
  .auth-code-box {
    padding: 1rem;
    border-radius: 20px;
  }

  .form-footer,
  .auth-inline-links {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-link {
    justify-content: center;
  }

  .welcome-content {
    padding: 1.5rem 1.2rem;
  }

  .welcome-logo {
    width: min(180px, 76vw);
    height: 78px;
    padding: 0.82rem 1rem;
    margin-bottom: 1.2rem;
  }

  .welcome-logo img {
    max-width: 138px;
  }

  .welcome-subtitle {
    font-size: 0.95rem;
  }

  body.auth-page--login .auth-story__heading p {
    display: none;
  }

  body.auth-page--login .auth-brand__copy small {
    display: none;
  }

  body.auth-page--login .auth-preview-card {
    gap: 0.24rem;
    padding: 0.7rem;
  }

  body.auth-page--login .auth-preview-card p {
    display: none;
  }

  body.auth-page--login .auth-preview-card strong {
    font-size: 0.84rem;
  }

  body.auth-page--login .auth-preview-card__label {
    font-size: 0.66rem;
  }

  body.auth-page--login .auth-panel__header h1 {
    font-size: clamp(1.72rem, 6.6vw, 2.1rem);
  }

  body.auth-page--login .auth-panel__header p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  body.auth-page--login .auth-inline-meta span {
    min-height: 30px;
    padding: 0.42rem 0.6rem;
    font-size: 0.74rem;
  }

  body.auth-page--login .auth-support {
    padding: 0.82rem;
  }

  body.auth-page--recovery .auth-story {
    padding: 0.9rem 0.85rem 0.8rem;
  }

  body.auth-page--recovery .auth-brand__copy small {
    display: none;
  }

  body.auth-page--recovery .auth-story__heading {
    gap: 0.55rem;
  }

  body.auth-page--recovery .auth-story__heading h2 {
    font-size: 1.52rem;
  }

  body.auth-page--recovery .auth-story__heading p {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  body.auth-page--recovery .auth-step {
    padding: 0.64rem;
  }

  body.auth-page--recovery .auth-step__number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.86rem;
  }

  body.auth-page--recovery .auth-step__title {
    font-size: 0.75rem;
  }

  body.auth-page--recovery .form-footer {
    gap: 0.6rem;
  }
}

@media (max-height: 840px) and (min-width: 821px) {
  body.auth-page--login .auth-stage,
  body.auth-page--recovery .auth-stage {
    padding: 0.75rem;
  }

  body.auth-page--login .auth-shell--login,
  body.auth-page--recovery .auth-shell--recovery {
    height: calc(100dvh - 1.5rem);
  }

  body.auth-page--login .auth-story--login {
    gap: 0.8rem;
    padding: 1rem 1.12rem;
  }

  body.auth-page--login .auth-story__heading p,
  body.auth-page--recovery .auth-story__heading p {
    font-size: 0.86rem;
    line-height: 1.52;
  }

  body.auth-page--login .auth-kpis,
  body.auth-page--recovery .auth-help-card {
    display: none;
  }

  body.auth-page--login .auth-preview-window {
    padding: 0.76rem;
  }

  body.auth-page--login .auth-preview-card {
    padding: 0.7rem;
  }

  body.auth-page--login .auth-preview-card p {
    font-size: 0.78rem;
  }

  body.auth-page--login .auth-panel,
  body.auth-page--recovery .auth-panel {
    padding: 1rem 1.1rem;
  }

  body.auth-page--login .auth-panel__content,
  body.auth-page--recovery .auth-panel__content {
    gap: 0.8rem;
  }

  body.auth-page--login .auth-card--soft,
  body.auth-page--login .auth-support,
  body.auth-page--recovery .auth-code-box,
  body.auth-page--recovery .auth-card--soft {
    padding: 0.8rem 0.85rem;
  }
}

@media (max-height: 700px) {
  body.auth-page--login .auth-preview-card p,
  body.auth-page--recovery .auth-story__heading p {
    display: none;
  }

  body.auth-page--recovery .auth-code-box {
    display: none;
  }
}

/* Compact auth refresh */
body.auth-page--login,
body.auth-page--recovery {
  overflow: hidden;
}

.auth-login-shell {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  min-height: min(620px, calc(100dvh - 2rem));
  display: grid;
  grid-template-columns: minmax(260px, 0.84fr) minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 550ms ease,
    transform 550ms ease;
}

.auth-login-shell.loaded {
  opacity: 1;
  transform: none;
}

.auth-login-aside {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  color: #fff8ef;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(243, 196, 108, 0.16), transparent 24%),
    linear-gradient(160deg, #172033 0%, #7f3029 55%, #9f3d34 100%);
}

.auth-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.auth-login-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 244, 225, 0.98), rgba(255, 227, 161, 0.9));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.auth-login-brand__mark img {
  display: none;
}

.auth-login-brand__mark::before {
  content: "M";
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.auth-login-brand__copy {
  display: grid;
  gap: 0.1rem;
}

.auth-login-brand__copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  color: var(--text);
}

.auth-login-brand__copy small {
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-login-copy {
  display: grid;
  gap: 0.7rem;
}

.auth-login-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.12);
  border: 1px solid rgba(255, 248, 239, 0.14);
  color: #fff3de;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-login-copy h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 1.02;
}

.auth-login-copy p {
  margin: 0;
  color: rgba(255, 248, 239, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-login-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.auth-login-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.1);
  border: 1px solid rgba(255, 248, 239, 0.12);
  color: #fff8ef;
  font-size: 0.82rem;
  font-weight: 700;
}

body.auth-page--login .auth-login-chip,
body.auth-page--login .auth-login-badges {
  display: none !important;
}

.auth-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem;
  min-width: 0;
}

.auth-form-card {
  width: min(390px, 100%);
  display: grid;
  gap: 0.9rem;
  padding: 1.18rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: var(--shadow-sm);
}

.auth-panel__header--compact {
  gap: 0.52rem;
}

.auth-panel__header--compact h1,
.auth-panel__header--compact h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  line-height: 1.02;
}

.auth-panel__header--compact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.56;
}

.form-footer--compact {
  justify-content: space-between;
}

.auth-simple-shell {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  display: block;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-md);
}

.auth-simple-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
}

.auth-simple-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-simple-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 244, 225, 0.98), rgba(255, 227, 161, 0.9));
  box-shadow: 0 14px 28px rgba(159, 61, 52, 0.16);
  overflow: hidden;
}

.auth-simple-brand__mark img {
  display: none;
}

.auth-simple-brand__mark::before {
  content: "M";
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.auth-simple-brand__copy {
  display: grid;
  gap: 0.08rem;
}

.auth-simple-brand__copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
}

.auth-simple-brand__copy small {
  color: var(--muted);
  font-size: 0.84rem;
}

.auth-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.auth-progress__item {
  display: grid;
  justify-items: center;
  gap: 0.32rem;
  padding: 0.72rem 0.55rem;
  border-radius: 16px;
  background: rgba(23, 32, 51, 0.04);
  border: 1px solid rgba(23, 32, 51, 0.08);
  text-align: center;
}

.auth-progress__item span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(23, 32, 51, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-progress__item strong {
  font-size: 0.82rem;
  line-height: 1.3;
}

.auth-progress__item.is-active {
  background: linear-gradient(180deg, rgba(159, 61, 52, 0.08), rgba(215, 162, 75, 0.12));
  border-color: rgba(159, 61, 52, 0.12);
}

.auth-progress__item.is-active span {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
}

.auth-progress__item.is-complete {
  background: rgba(47, 143, 104, 0.08);
  border-color: rgba(47, 143, 104, 0.12);
}

.auth-progress__item.is-complete span {
  background: rgba(47, 143, 104, 0.14);
  color: var(--success);
}

body.auth-page--login .auth-stage,
body.auth-page--recovery .auth-stage {
  min-height: 100dvh;
  height: 100dvh;
  padding: 1rem;
  overflow: hidden;
}

@media (max-width: 900px) {
  .auth-login-shell {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-login-aside,
  .auth-login-panel {
    padding: 1rem;
  }

  .auth-login-copy h1 {
    font-size: clamp(1.65rem, 6vw, 2.2rem);
  }

  .auth-login-copy p {
    font-size: 0.9rem;
  }

  .auth-form-card {
    width: 100%;
  }
}

@media (max-width: 620px) {
  body.auth-page--login .auth-stage,
  body.auth-page--recovery .auth-stage {
    padding: 0;
  }

  .auth-login-shell,
  .auth-simple-shell {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .auth-login-aside {
    gap: 0.8rem;
    padding: 0.95rem 0.95rem 0.82rem;
  }

  .auth-login-brand__copy small,
  .auth-simple-brand__copy small {
    display: none;
  }

  .auth-login-copy p {
    display: none;
  }

  .auth-login-badges span {
    min-height: 30px;
    font-size: 0.74rem;
  }

  .auth-login-panel {
    padding: 0.9rem;
  }

  .auth-form-card,
  .auth-simple-card {
    gap: 0.8rem;
    padding: 0.95rem;
    border-radius: 22px;
  }

  .auth-progress {
    gap: 0.4rem;
  }

  .auth-progress__item {
    padding: 0.56rem 0.4rem;
    border-radius: 14px;
  }

  .auth-progress__item span {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 0.78rem;
  }

  .auth-progress__item strong {
    font-size: 0.72rem;
  }

  .auth-panel__header--compact h1,
  .auth-panel__header--compact h2 {
    font-size: clamp(1.55rem, 6.4vw, 2rem);
  }

  .auth-panel__header--compact p {
    font-size: 0.88rem;
  }

  .form-footer--compact {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-height: 780px) {
  .auth-login-aside,
  .auth-login-panel {
    padding: 0.95rem;
  }

  .auth-login-copy p,
  .auth-simple-brand__copy small {
    display: none;
  }

  .auth-login-badges {
    gap: 0.42rem;
  }

  .auth-login-badges span {
    min-height: 30px;
    font-size: 0.74rem;
  }

  .auth-form-card,
  .auth-simple-card {
    gap: 0.75rem;
    padding: 0.95rem;
  }

  .auth-panel__header--compact p {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .auth-progress__item {
    padding: 0.54rem 0.42rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  .submit-btn {
    min-height: 50px;
  }
}

/* Compact auth overrides */
.auth-login-shell--solo {
  width: min(460px, 100%);
  min-height: 0;
  display: block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
}

.auth-login-panel--solo {
  padding: 0;
}

.auth-form-card--solo {
  width: 100%;
  gap: 0.85rem;
  padding: 1.32rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.auth-login-mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.auth-login-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.auth-login-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.05);
  border: 1px solid rgba(23, 32, 51, 0.08);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-login-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.auth-progress--compact {
  gap: 0.45rem;
}

.auth-progress--compact .auth-progress__item {
  padding: 0.62rem 0.45rem;
}

.auth-progress--compact .auth-progress__item strong {
  font-size: 0.76rem;
}

body.auth-page--login .auth-login-shell--solo .auth-panel__header--compact h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

body.auth-page--recovery .auth-simple-shell {
  width: min(460px, 100%);
}

@media (max-width: 620px) {
  .auth-login-shell--solo {
    min-height: 0;
    background: transparent;
  }

  .auth-form-card--solo {
    padding: 1rem 0.95rem 1.1rem;
  }

  .auth-login-topline span {
    min-height: 30px;
    font-size: 0.72rem;
  }
}

@media (max-height: 780px) {
  .auth-login-topline,
  .auth-login-note {
    display: none;
  }

  .auth-progress--compact .auth-progress__item strong {
    display: none;
  }
}

.auth-login-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.auth-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.56rem 0.82rem;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.05);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    color var(--transition);
}

.auth-theme-toggle:hover,
.auth-theme-toggle:focus-visible {
  background: rgba(159, 61, 52, 0.1);
  border-color: rgba(159, 61, 52, 0.14);
  transform: translateY(-1px);
}

html[data-auth-theme="dark"] {
  --bg: #08111d;
  --bg-deep: #040913;
  --surface: rgba(10, 19, 33, 0.88);
  --surface-strong: #0d1828;
  --surface-soft: #0f1d2f;
  --text: #edf3fb;
  --muted: #afbdd0;
  --line: rgba(214, 225, 239, 0.12);
  --brand-soft: rgba(215, 162, 75, 0.14);
  --info: #8eb9f4;
}

html[data-auth-theme="dark"] body.auth-page {
  background:
    radial-gradient(circle at top left, rgba(215, 162, 75, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(159, 61, 52, 0.14), transparent 24%),
    linear-gradient(180deg, #050c16 0%, #091321 48%, #0d1828 100%);
}

html[data-auth-theme="dark"] .auth-login-shell--solo {
  background: linear-gradient(180deg, rgba(10, 19, 33, 0.96), rgba(14, 26, 43, 0.92));
  border-color: rgba(214, 225, 239, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

html[data-auth-theme="dark"] .auth-login-brand__mark {
  background: linear-gradient(135deg, rgba(215, 162, 75, 0.2), rgba(255, 244, 225, 0.16));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

html[data-auth-theme="dark"] .auth-login-brand__copy strong {
  color: var(--text);
}

html[data-auth-theme="dark"] .auth-login-brand__copy small {
  color: var(--muted);
}

html[data-auth-theme="dark"] .auth-login-topline span,
html[data-auth-theme="dark"] .auth-theme-toggle,
html[data-auth-theme="dark"] .toggle-password {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(214, 225, 239, 0.1);
  color: var(--text);
}

html[data-auth-theme="dark"] .auth-theme-toggle:hover,
html[data-auth-theme="dark"] .auth-theme-toggle:focus-visible,
html[data-auth-theme="dark"] .toggle-password:hover,
html[data-auth-theme="dark"] .toggle-password:focus-visible {
  background: rgba(215, 162, 75, 0.14);
  border-color: rgba(215, 162, 75, 0.18);
}

html[data-auth-theme="dark"] .auth-panel__eyebrow {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(214, 225, 239, 0.1);
  color: #ffe3a1;
}

html[data-auth-theme="dark"] .auth-panel__header--compact p,
html[data-auth-theme="dark"] .input-hint,
html[data-auth-theme="dark"] .auth-login-note {
  color: var(--muted);
}

html[data-auth-theme="dark"] .input-shell > i {
  color: #94a7bf;
}

html[data-auth-theme="dark"] input[type="text"],
html[data-auth-theme="dark"] input[type="email"],
html[data-auth-theme="dark"] input[type="password"] {
  background: rgba(6, 14, 25, 0.86);
  border-color: rgba(214, 225, 239, 0.1);
  color: var(--text);
}

html[data-auth-theme="dark"] input::placeholder {
  color: #7f93aa;
}

html[data-auth-theme="dark"] input:focus {
  background: #0e1c2f;
  border-color: rgba(215, 162, 75, 0.42);
  box-shadow: 0 0 0 4px rgba(215, 162, 75, 0.12);
}

html[data-auth-theme="dark"] .footer-link {
  color: #f4c169;
}

html[data-auth-theme="dark"] .footer-link:hover,
html[data-auth-theme="dark"] .footer-link:focus-visible {
  color: #ffd68a;
}

html[data-auth-theme="dark"] .auth-simple-shell {
  background: linear-gradient(180deg, rgba(10, 19, 33, 0.96), rgba(14, 26, 43, 0.92));
  border-color: rgba(214, 225, 239, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

html[data-auth-theme="dark"] .auth-simple-brand__mark {
  background: linear-gradient(135deg, rgba(215, 162, 75, 0.22), rgba(159, 61, 52, 0.34));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

html[data-auth-theme="dark"] .auth-progress__item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(214, 225, 239, 0.08);
}

html[data-auth-theme="dark"] .auth-progress__item span {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

html[data-auth-theme="dark"] .auth-progress__item.is-active {
  background: linear-gradient(180deg, rgba(159, 61, 52, 0.14), rgba(215, 162, 75, 0.12));
  border-color: rgba(215, 162, 75, 0.14);
}

html[data-auth-theme="dark"] .auth-progress__item.is-complete {
  background: rgba(47, 143, 104, 0.12);
  border-color: rgba(47, 143, 104, 0.16);
}

html[data-auth-theme="dark"] .auth-code-note,
html[data-auth-theme="dark"] .password-requirements,
html[data-auth-theme="dark"] .password-match {
  color: var(--muted);
}

html[data-auth-theme="dark"] .alert-success {
  background: rgba(47, 143, 104, 0.12);
  border-color: rgba(47, 143, 104, 0.2);
}

html[data-auth-theme="dark"] .alert-error,
html[data-auth-theme="dark"] .alert-danger {
  background: rgba(183, 67, 67, 0.16);
  border-color: rgba(183, 67, 67, 0.24);
}

html[data-auth-theme="dark"] .alert-info,
html[data-auth-theme="dark"] .alert-warning {
  background: rgba(49, 93, 143, 0.14);
  border-color: rgba(49, 93, 143, 0.2);
}

html[data-auth-theme="dark"] .welcome-overlay {
  background:
    radial-gradient(circle at top left, rgba(215, 162, 75, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(159, 61, 52, 0.18), transparent 26%),
    linear-gradient(180deg, #040913 0%, #08111d 100%);
}

@media (max-width: 620px) {
  .auth-login-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-theme-toggle {
    width: 100%;
  }
}

/* Login redesign aligned with inicio */
body.auth-page--login {
  background:
    radial-gradient(circle at 88% 12%, rgba(143, 90, 74, 0.12), transparent 16rem),
    radial-gradient(circle at 12% 100%, rgba(44, 47, 54, 0.08), transparent 14rem),
    linear-gradient(180deg, #eef1f4 0%, #f6f7f9 50%, #eef1f4 100%);
}

body.auth-page--login .auth-stage::before {
  background: radial-gradient(circle, rgba(143, 90, 74, 0.16), transparent 65%);
}

body.auth-page--login .auth-stage::after {
  background: radial-gradient(circle, rgba(74, 79, 88, 0.14), transparent 62%);
}

body.auth-page--login .auth-login-shell--solo {
  width: min(470px, 100%);
  min-height: 0;
  display: block;
  border-radius: 40px;
  border: 1px solid rgba(44, 47, 54, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.68));
  box-shadow: 0 28px 70px rgba(17, 19, 25, 0.14);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

body.auth-page--login .auth-login-panel--solo {
  min-width: 0;
}

body.auth-page--login .auth-login-brand__mark,
body.auth-page--login .auth-login-mini-brand .auth-login-brand__mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1.05rem;
  background: linear-gradient(135deg, #c88a7f, var(--brand-dark));
  box-shadow: 0 14px 28px rgba(143, 90, 74, 0.2);
}

body.auth-page--login .auth-login-brand__mark::before {
  content: "M";
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

body.auth-page--login .auth-login-brand__copy strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2c2f36;
}

body.auth-page--login .auth-login-brand__copy small {
  color: #5d636d;
}

body.auth-page--login .auth-login-panel--solo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

body.auth-page--login .auth-form-card--solo {
  width: min(430px, 100%);
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 2rem;
  border: 1px solid rgba(44, 47, 54, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
  box-shadow: 0 16px 40px rgba(17, 19, 25, 0.08);
  backdrop-filter: blur(14px);
}

body.auth-page--login .auth-login-topbar {
  align-items: center;
}

body.auth-page--login .auth-theme-toggle {
  min-height: 2.75rem;
  padding: 0.56rem 0.92rem;
  border: 1px solid rgba(44, 47, 54, 0.08);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

body.auth-page--login .auth-theme-toggle:hover,
body.auth-page--login .auth-theme-toggle:focus-visible,
body.auth-page--login .toggle-password:hover,
body.auth-page--login .toggle-password:focus-visible {
  background: rgba(143, 90, 74, 0.08);
  border-color: rgba(143, 90, 74, 0.14);
}

body.auth-page--login .auth-panel__eyebrow {
  background: rgba(143, 90, 74, 0.08);
  border-color: rgba(143, 90, 74, 0.12);
  color: var(--brand-dark);
}

body.auth-page--login .auth-panel__header--compact h1 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

body.auth-page--login .auth-panel__header--compact p,
body.auth-page--login .input-hint {
  color: #5d636d;
}

body.auth-page--login input[type="text"],
body.auth-page--login input[type="email"],
body.auth-page--login input[type="password"] {
  min-height: 3.45rem;
  border-color: rgba(44, 47, 54, 0.1);
  background: rgba(255, 255, 255, 0.86);
}

body.auth-page--login input:focus {
  border-color: rgba(143, 90, 74, 0.28);
  box-shadow: 0 0 0 4px rgba(143, 90, 74, 0.08);
}

body.auth-page--login .toggle-password {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 47, 54, 0.06);
}

body.auth-page--login .submit-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 34px rgba(143, 90, 74, 0.2);
}

body.auth-page--login .submit-btn:hover,
body.auth-page--login .submit-btn:focus-visible {
  box-shadow: 0 22px 40px rgba(143, 90, 74, 0.24);
}

body.auth-page--login .footer-link {
  color: var(--brand);
}

body.auth-page--login .footer-link:hover,
body.auth-page--login .footer-link:focus-visible {
  color: var(--brand-dark);
}

html[data-auth-theme="dark"] body.auth-page--login {
  background:
    radial-gradient(circle at 88% 12%, rgba(143, 90, 74, 0.16), transparent 16rem),
    radial-gradient(circle at 12% 100%, rgba(133, 136, 143, 0.08), transparent 14rem),
    linear-gradient(180deg, #171a20 0%, #0f1115 50%, #171a20 100%);
}

html[data-auth-theme="dark"] .auth-login-shell--solo {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(24, 26, 31, 0.94), rgba(18, 20, 25, 0.9));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

html[data-auth-theme="dark"] .auth-login-brand__copy strong {
  color: #f5f7fb;
}

html[data-auth-theme="dark"] .auth-login-brand__copy small,
html[data-auth-theme="dark"] .auth-panel__header--compact p,
html[data-auth-theme="dark"] .input-hint {
  color: #aeb4bf;
}

html[data-auth-theme="dark"] .auth-panel__eyebrow {
  background: rgba(143, 90, 74, 0.18);
  border-color: rgba(200, 138, 127, 0.2);
  color: #f0c4b6;
}

html[data-auth-theme="dark"] .auth-form-card--solo,
html[data-auth-theme="dark"] .auth-theme-toggle,
html[data-auth-theme="dark"] .toggle-password,
html[data-auth-theme="dark"] input[type="text"],
html[data-auth-theme="dark"] input[type="email"],
html[data-auth-theme="dark"] input[type="password"] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}

html[data-auth-theme="dark"] .auth-theme-toggle:hover,
html[data-auth-theme="dark"] .auth-theme-toggle:focus-visible,
html[data-auth-theme="dark"] .toggle-password:hover,
html[data-auth-theme="dark"] .toggle-password:focus-visible {
  background: rgba(143, 90, 74, 0.12);
  border-color: rgba(200, 138, 127, 0.18);
}

html[data-auth-theme="dark"] body.auth-page--login input:focus {
  border-color: rgba(200, 138, 127, 0.34);
  box-shadow: 0 0 0 4px rgba(143, 90, 74, 0.12);
}

@media (max-width: 980px) {
  body.auth-page--login .auth-login-shell--solo {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  body.auth-page--login .auth-stage {
    padding: 0.75rem;
  }
}

@media (max-width: 620px) {
  body.auth-page--login .auth-stage {
    padding: 0;
  }

  body.auth-page--login .auth-login-shell--solo {
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  body.auth-page--login .auth-form-card--solo {
    width: 100%;
    padding: 1rem 0.95rem 1.1rem;
    border-radius: 1.6rem;
  }
}

/* Recovery redesign aligned with inicio */
body.auth-page--recovery {
  background:
    radial-gradient(circle at 88% 12%, rgba(143, 90, 74, 0.12), transparent 16rem),
    radial-gradient(circle at 12% 100%, rgba(44, 47, 54, 0.08), transparent 14rem),
    linear-gradient(180deg, #eef1f4 0%, #f6f7f9 50%, #eef1f4 100%);
}

body.auth-page--recovery .auth-stage::before {
  background: radial-gradient(circle, rgba(143, 90, 74, 0.16), transparent 65%);
}

body.auth-page--recovery .auth-stage::after {
  background: radial-gradient(circle, rgba(74, 79, 88, 0.14), transparent 62%);
}

body.auth-page--recovery .auth-simple-shell {
  width: min(470px, 100%);
  border-radius: 2.5rem;
  border: 1px solid rgba(44, 47, 54, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
  box-shadow: 0 28px 70px rgba(17, 19, 25, 0.14);
  backdrop-filter: blur(18px);
}

body.auth-page--recovery .auth-simple-card {
  gap: 1rem;
  padding: 1.35rem;
}

body.auth-page--recovery .auth-simple-brand__mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1.05rem;
  background: linear-gradient(135deg, #c88a7f, var(--brand-dark));
  box-shadow: 0 14px 28px rgba(143, 90, 74, 0.2);
}

body.auth-page--recovery .auth-simple-brand__mark::before {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

body.auth-page--recovery .auth-simple-brand__copy strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.auth-page--recovery .auth-simple-brand__copy small {
  color: #5d636d;
}

body.auth-page--recovery .auth-login-topbar {
  align-items: center;
}

body.auth-page--recovery .auth-theme-toggle {
  min-height: 2.75rem;
  padding: 0.56rem 0.92rem;
  border: 1px solid rgba(44, 47, 54, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

body.auth-page--recovery .auth-theme-toggle:hover,
body.auth-page--recovery .auth-theme-toggle:focus-visible,
body.auth-page--recovery .toggle-password:hover,
body.auth-page--recovery .toggle-password:focus-visible {
  background: rgba(143, 90, 74, 0.08);
  border-color: rgba(143, 90, 74, 0.14);
}

body.auth-page--recovery .auth-panel__eyebrow {
  background: rgba(143, 90, 74, 0.08);
  border-color: rgba(143, 90, 74, 0.12);
  color: var(--brand-dark);
}

body.auth-page--recovery .auth-panel__header--compact h1,
body.auth-page--recovery .auth-panel__header--compact h2 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

body.auth-page--recovery .auth-panel__header--compact p,
body.auth-page--recovery .auth-code-note,
body.auth-page--recovery .input-hint,
body.auth-page--recovery .password-requirements,
body.auth-page--recovery .password-match {
  color: #5d636d;
}

body.auth-page--recovery .auth-progress__item {
  background: rgba(74, 79, 88, 0.06);
  border-color: rgba(44, 47, 54, 0.08);
}

body.auth-page--recovery .auth-progress__item span {
  background: rgba(74, 79, 88, 0.1);
}

body.auth-page--recovery .auth-progress__item.is-active {
  background: linear-gradient(180deg, rgba(143, 90, 74, 0.08), rgba(255, 255, 255, 0.36));
  border-color: rgba(143, 90, 74, 0.14);
}

body.auth-page--recovery .auth-progress__item.is-active span {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

body.auth-page--recovery .auth-progress__item.is-complete {
  background: rgba(74, 79, 88, 0.08);
  border-color: rgba(44, 47, 54, 0.1);
}

body.auth-page--recovery .auth-progress__item.is-complete span {
  background: rgba(74, 79, 88, 0.14);
  color: #2c2f36;
}

body.auth-page--recovery input[type="text"],
body.auth-page--recovery input[type="email"],
body.auth-page--recovery input[type="password"] {
  min-height: 3.45rem;
  border-color: rgba(44, 47, 54, 0.1);
  background: rgba(255, 255, 255, 0.86);
}

body.auth-page--recovery input:focus {
  border-color: rgba(143, 90, 74, 0.28);
  box-shadow: 0 0 0 4px rgba(143, 90, 74, 0.08);
}

body.auth-page--recovery .toggle-password {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 47, 54, 0.06);
}

body.auth-page--recovery .submit-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 34px rgba(143, 90, 74, 0.2);
}

body.auth-page--recovery .submit-btn:hover,
body.auth-page--recovery .submit-btn:focus-visible {
  box-shadow: 0 22px 40px rgba(143, 90, 74, 0.24);
}

body.auth-page--recovery .footer-link {
  color: var(--brand);
}

body.auth-page--recovery .footer-link:hover,
body.auth-page--recovery .footer-link:focus-visible {
  color: var(--brand-dark);
}

html[data-auth-theme="dark"] body.auth-page--recovery {
  background:
    radial-gradient(circle at 88% 12%, rgba(143, 90, 74, 0.16), transparent 16rem),
    radial-gradient(circle at 12% 100%, rgba(133, 136, 143, 0.08), transparent 14rem),
    linear-gradient(180deg, #171a20 0%, #0f1115 50%, #171a20 100%);
}

html[data-auth-theme="dark"] .auth-simple-shell {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(24, 26, 31, 0.94), rgba(18, 20, 25, 0.9));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

html[data-auth-theme="dark"] .auth-simple-brand__mark {
  background: linear-gradient(135deg, #c88a7f, var(--brand-dark));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

html[data-auth-theme="dark"] .auth-simple-brand__copy strong {
  color: #f5f7fb;
}

html[data-auth-theme="dark"] .auth-simple-brand__copy small,
html[data-auth-theme="dark"] .auth-panel__header--compact p,
html[data-auth-theme="dark"] .auth-code-note,
html[data-auth-theme="dark"] .input-hint,
html[data-auth-theme="dark"] .password-requirements,
html[data-auth-theme="dark"] .password-match {
  color: #aeb4bf;
}

html[data-auth-theme="dark"] .auth-panel__eyebrow {
  background: rgba(143, 90, 74, 0.18);
  border-color: rgba(200, 138, 127, 0.2);
  color: #f0c4b6;
}

html[data-auth-theme="dark"] .auth-theme-toggle,
html[data-auth-theme="dark"] .toggle-password,
html[data-auth-theme="dark"] input[type="text"],
html[data-auth-theme="dark"] input[type="email"],
html[data-auth-theme="dark"] input[type="password"],
html[data-auth-theme="dark"] .auth-progress__item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}

html[data-auth-theme="dark"] .auth-progress__item span,
html[data-auth-theme="dark"] .auth-progress__item.is-complete span {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7fb;
}

html[data-auth-theme="dark"] .auth-progress__item.is-active {
  background: linear-gradient(180deg, rgba(143, 90, 74, 0.14), rgba(255, 255, 255, 0.04));
  border-color: rgba(200, 138, 127, 0.18);
}

html[data-auth-theme="dark"] .auth-progress__item.is-active span {
  background: linear-gradient(135deg, #c88a7f, var(--brand-dark));
}

html[data-auth-theme="dark"] body.auth-page--recovery input:focus {
  border-color: rgba(200, 138, 127, 0.34);
  box-shadow: 0 0 0 4px rgba(143, 90, 74, 0.12);
}

html[data-auth-theme="dark"] body.auth-page--recovery .footer-link {
  color: #ffffff;
}

html[data-auth-theme="dark"] body.auth-page--recovery .footer-link:hover,
html[data-auth-theme="dark"] body.auth-page--recovery .footer-link:focus-visible {
  color: #ffffff;
}

@media (max-width: 620px) {
  body.auth-page--recovery .auth-simple-shell {
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  body.auth-page--recovery .auth-simple-card {
    padding: 1rem 0.95rem 1.1rem;
    border-radius: 1.6rem;
  }
}

/* Tasks palette refresh */
body.auth-page {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(169, 211, 197, 0.44), transparent 30%),
    radial-gradient(circle at top right, rgba(48, 123, 142, 0.18), transparent 26%),
    linear-gradient(180deg, #f8fcfa 0%, var(--bg) 56%, #dcece4 100%);
}

body.auth-page .auth-stage::before {
  background: radial-gradient(circle, rgba(54, 107, 43, 0.18), transparent 65%);
}

body.auth-page .auth-stage::after {
  background: radial-gradient(circle, rgba(48, 123, 142, 0.18), transparent 62%);
}

body.auth-page .auth-shell,
body.auth-page .auth-login-shell--solo,
body.auth-page .auth-simple-shell,
body.auth-page .auth-form-card--solo {
  border-color: rgba(16, 58, 87, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 252, 250, 0.78));
  box-shadow: 0 28px 70px rgba(16, 58, 87, 0.14);
}

body.auth-page .auth-story,
body.auth-page .auth-login-aside {
  color: #f4fbf7;
  background:
    radial-gradient(circle at 18% 18%, rgba(206, 229, 214, 0.2), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(169, 211, 197, 0.16), transparent 24%),
    linear-gradient(155deg, #103a57 0%, #307b8e 58%, #366b2b 100%);
}

body.auth-page .welcome-overlay {
  background:
    radial-gradient(circle at 20% 20%, rgba(169, 211, 197, 0.18), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(48, 123, 142, 0.2), transparent 26%),
    linear-gradient(160deg, rgba(8, 24, 34, 0.96), rgba(16, 58, 87, 0.98));
}

body.auth-page .welcome-logo {
  background: linear-gradient(135deg, rgba(206, 229, 214, 0.98), rgba(169, 211, 197, 0.94));
}

body.auth-page .welcome-title {
  background: linear-gradient(135deg, #eef8f3, #cee5d6);
  -webkit-background-clip: text;
  background-clip: text;
}

body.auth-page .welcome-subtitle,
body.auth-page .auth-story__heading p,
body.auth-page .auth-login-copy p,
body.auth-page .auth-help-card li,
body.auth-page .auth-help-card p,
body.auth-page .auth-metrics-card small,
body.auth-page .auth-security-list span,
body.auth-page .auth-list {
  color: rgba(244, 251, 247, 0.88);
}

body.auth-page .auth-brand__mark,
body.auth-page .auth-login-brand__mark,
body.auth-page .auth-simple-brand__mark {
  background: linear-gradient(135deg, #307b8e, #103a57);
  box-shadow: 0 16px 32px rgba(16, 58, 87, 0.24);
}

body.auth-page .auth-brand__mark::before,
body.auth-page .auth-login-brand__mark::before,
body.auth-page .auth-simple-brand__mark::before {
  color: #ffffff;
}

body.auth-page .auth-brand__copy small,
body.auth-page .auth-login-brand__copy small,
body.auth-page .auth-simple-brand__copy small,
body.auth-page .auth-panel__header--compact p,
body.auth-page .input-hint,
body.auth-page .password-requirements,
body.auth-page .password-match,
body.auth-page .auth-code-note,
body.auth-page .form-footer p,
body.auth-page .auth-inline-links,
body.auth-page .auth-simple-copy p {
  color: #365f69;
}

body.auth-page .auth-panel__eyebrow {
  background: rgba(169, 211, 197, 0.46);
  border-color: rgba(48, 123, 142, 0.24);
  color: var(--brand-dark);
}

body.auth-page .auth-pill {
  background: rgba(206, 229, 214, 0.24);
  border-color: rgba(206, 229, 214, 0.3);
  color: #f4fbf7;
}

body.auth-page .auth-progress__item {
  background: rgba(16, 58, 87, 0.04);
  border-color: rgba(16, 58, 87, 0.08);
}

body.auth-page .auth-progress__item span {
  background: rgba(16, 58, 87, 0.08);
  color: var(--text);
}

body.auth-page .auth-progress__item strong {
  color: var(--text);
}

body.auth-page .auth-progress__item.is-active {
  background: linear-gradient(180deg, rgba(169, 211, 197, 0.16), rgba(48, 123, 142, 0.12));
  border-color: rgba(48, 123, 142, 0.18);
}

body.auth-page .auth-progress__item.is-active span {
  background: linear-gradient(135deg, #307b8e, #103a57);
}

body.auth-page .auth-progress__item.is-complete {
  background: rgba(54, 107, 43, 0.08);
  border-color: rgba(54, 107, 43, 0.14);
}

body.auth-page .auth-progress__item.is-complete span {
  background: rgba(54, 107, 43, 0.14);
  color: var(--success);
}

body.auth-page .alert-success {
  background: rgba(54, 107, 43, 0.1);
  border-color: rgba(54, 107, 43, 0.18);
}

body.auth-page .alert-info,
body.auth-page .alert-warning {
  background: rgba(48, 123, 142, 0.08);
  border-color: rgba(48, 123, 142, 0.16);
}

body.auth-page .input-shell > i,
body.auth-page .input-icon {
  color: #4d7d88;
}

body.auth-page input[type="text"],
body.auth-page input[type="email"],
body.auth-page input[type="password"] {
  border-color: rgba(16, 58, 87, 0.12);
  background: rgba(251, 254, 252, 0.94);
  color: var(--text);
}

body.auth-page input::placeholder {
  color: #4f7680;
}

body.auth-page input:focus {
  border-color: rgba(48, 123, 142, 0.5);
  box-shadow: 0 0 0 4px rgba(48, 123, 142, 0.14);
  background: #ffffff;
}

body.auth-page .toggle-password,
body.auth-page .auth-theme-toggle {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 58, 87, 0.08);
  color: var(--text);
}

body.auth-page .toggle-password:hover,
body.auth-page .toggle-password:focus-visible,
body.auth-page .auth-theme-toggle:hover,
body.auth-page .auth-theme-toggle:focus-visible {
  background: rgba(169, 211, 197, 0.34);
  border-color: rgba(48, 123, 142, 0.2);
}

body.auth-page .submit-btn {
  background: linear-gradient(135deg, #307b8e, #103a57);
  box-shadow: 0 20px 36px rgba(16, 58, 87, 0.24);
}

body.auth-page .submit-btn:hover,
body.auth-page .submit-btn:focus-visible {
  box-shadow: 0 24px 42px rgba(16, 58, 87, 0.28);
}

body.auth-page .footer-link,
body.auth-page .auth-inline-links a {
  color: #144866;
  font-weight: 800;
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  background: rgba(169, 211, 197, 0.28);
  border: 1px solid rgba(48, 123, 142, 0.16);
}

body.auth-page .footer-link:hover,
body.auth-page .footer-link:focus-visible,
body.auth-page .auth-inline-links a:hover,
body.auth-page .auth-inline-links a:focus-visible {
  color: #0b3551;
  background: rgba(169, 211, 197, 0.42);
  border-color: rgba(48, 123, 142, 0.24);
}

html[data-auth-theme="dark"] body.auth-page {
  background:
    radial-gradient(circle at top left, rgba(54, 107, 43, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(48, 123, 142, 0.16), transparent 24%),
    linear-gradient(180deg, #081822 0%, #0d2231 58%, #0b1d2a 100%);
}

html[data-auth-theme="dark"] body.auth-page .auth-shell,
html[data-auth-theme="dark"] body.auth-page .auth-login-shell--solo,
html[data-auth-theme="dark"] body.auth-page .auth-simple-shell,
html[data-auth-theme="dark"] body.auth-page .auth-form-card--solo {
  border-color: rgba(169, 211, 197, 0.1);
  background: linear-gradient(180deg, rgba(10, 31, 44, 0.94), rgba(12, 35, 50, 0.88));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

html[data-auth-theme="dark"] body.auth-page .auth-story,
html[data-auth-theme="dark"] body.auth-page .auth-login-aside {
  background:
    radial-gradient(circle at 14% 16%, rgba(169, 211, 197, 0.16), transparent 26%),
    radial-gradient(circle at 86% 14%, rgba(48, 123, 142, 0.16), transparent 24%),
    linear-gradient(160deg, #0b2435 0%, #103a57 48%, #1f5d6f 100%);
}

html[data-auth-theme="dark"] body.auth-page .auth-panel__eyebrow {
  background: rgba(169, 211, 197, 0.22);
  border-color: rgba(169, 211, 197, 0.24);
  color: #def2ea;
}

html[data-auth-theme="dark"] body.auth-page .auth-brand__copy small,
html[data-auth-theme="dark"] body.auth-page .auth-login-brand__copy small,
html[data-auth-theme="dark"] body.auth-page .auth-simple-brand__copy small,
html[data-auth-theme="dark"] body.auth-page .auth-panel__header--compact p,
html[data-auth-theme="dark"] body.auth-page .input-hint,
html[data-auth-theme="dark"] body.auth-page .password-requirements,
html[data-auth-theme="dark"] body.auth-page .password-match,
html[data-auth-theme="dark"] body.auth-page .auth-code-note,
html[data-auth-theme="dark"] body.auth-page .form-footer p,
html[data-auth-theme="dark"] body.auth-page .auth-inline-links,
html[data-auth-theme="dark"] body.auth-page .auth-simple-copy p {
  color: #d2e8e0;
}

html[data-auth-theme="dark"] body.auth-page .auth-theme-toggle,
html[data-auth-theme="dark"] body.auth-page .toggle-password,
html[data-auth-theme="dark"] body.auth-page input[type="text"],
html[data-auth-theme="dark"] body.auth-page input[type="email"],
html[data-auth-theme="dark"] body.auth-page input[type="password"],
html[data-auth-theme="dark"] body.auth-page .auth-progress__item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(169, 211, 197, 0.12);
  color: #f2f8f4;
}

html[data-auth-theme="dark"] body.auth-page .auth-progress__item span,
html[data-auth-theme="dark"] body.auth-page .auth-progress__item.is-complete span {
  background: rgba(255, 255, 255, 0.08);
  color: #f2f8f4;
}

html[data-auth-theme="dark"] body.auth-page .auth-progress__item strong {
  color: #f2f8f4;
}

html[data-auth-theme="dark"] body.auth-page .auth-progress__item.is-active {
  background: linear-gradient(180deg, rgba(169, 211, 197, 0.12), rgba(48, 123, 142, 0.12));
  border-color: rgba(169, 211, 197, 0.2);
}

html[data-auth-theme="dark"] body.auth-page .auth-progress__item.is-active span,
html[data-auth-theme="dark"] body.auth-page .submit-btn {
  background: linear-gradient(135deg, #307b8e, #366b2b);
}

html[data-auth-theme="dark"] body.auth-page input::placeholder {
  color: rgba(226, 241, 235, 0.76);
}

html[data-auth-theme="dark"] body.auth-page input:focus {
  border-color: rgba(169, 211, 197, 0.34);
  box-shadow: 0 0 0 4px rgba(48, 123, 142, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

html[data-auth-theme="dark"] body.auth-page .toggle-password:hover,
html[data-auth-theme="dark"] body.auth-page .toggle-password:focus-visible,
html[data-auth-theme="dark"] body.auth-page .auth-theme-toggle:hover,
html[data-auth-theme="dark"] body.auth-page .auth-theme-toggle:focus-visible {
  background: rgba(169, 211, 197, 0.1);
  border-color: rgba(169, 211, 197, 0.22);
}

html[data-auth-theme="dark"] body.auth-page .footer-link,
html[data-auth-theme="dark"] body.auth-page .auth-inline-links a {
  color: #e5f4ee;
  background: rgba(48, 123, 142, 0.16);
  border-color: rgba(169, 211, 197, 0.18);
}

html[data-auth-theme="dark"] body.auth-page .footer-link:hover,
html[data-auth-theme="dark"] body.auth-page .footer-link:focus-visible,
html[data-auth-theme="dark"] body.auth-page .auth-inline-links a:hover,
html[data-auth-theme="dark"] body.auth-page .auth-inline-links a:focus-visible {
  color: #ffffff;
  background: rgba(169, 211, 197, 0.18);
  border-color: rgba(169, 211, 197, 0.28);
}

html[data-auth-theme="dark"] body.auth-page .alert-success {
  background: rgba(54, 107, 43, 0.16);
  border-color: rgba(54, 107, 43, 0.22);
}

html[data-auth-theme="dark"] body.auth-page .alert-info,
html[data-auth-theme="dark"] body.auth-page .alert-warning {
  background: rgba(48, 123, 142, 0.12);
  border-color: rgba(48, 123, 142, 0.2);
}

/* Inicio visual sync */
body.auth-page {
  color: #f7f7f7;
  background:
    radial-gradient(circle at top left, rgba(241, 96, 1, 0.14), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(193, 8, 1, 0.14), transparent 22rem),
    linear-gradient(180deg, #030303 0%, #080808 36%, #050505 100%);
}

body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 100%);
  pointer-events: none;
  z-index: 0;
}

body.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
  pointer-events: none;
  z-index: 0;
}

body.auth-page .auth-stage,
body.auth-page .welcome-overlay {
  position: relative;
  z-index: 1;
}

body.auth-page .auth-stage {
  min-height: 100dvh;
  height: auto;
  padding: 1.2rem;
  overflow: visible;
}

body.auth-page .auth-login-shell--solo,
body.auth-page .auth-simple-shell,
body.auth-page .auth-form-card--solo {
  border: 1px solid rgba(249, 249, 249, 0.1);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.88), rgba(12, 12, 12, 0.8));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

body.auth-page .auth-login-shell--solo,
body.auth-page .auth-simple-shell {
  position: relative;
  overflow: hidden;
  border-radius: 2.1rem;
}

body.auth-page .auth-login-shell--solo::before,
body.auth-page .auth-simple-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
}

body.auth-page .auth-login-brand__mark,
body.auth-page .auth-simple-brand__mark {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, #e85002, #f16001);
  box-shadow: 0 14px 28px rgba(232, 80, 2, 0.2);
}

body.auth-page .auth-login-brand__mark::before,
body.auth-page .auth-simple-brand__mark::before {
  color: #050505;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
}

body.auth-page .auth-login-brand__copy strong,
body.auth-page .auth-simple-brand__copy strong,
body.auth-page .auth-panel__header--compact h1,
body.auth-page .auth-panel__header--compact h2,
body.auth-page .auth-progress__item strong,
body.auth-page .form-group label,
body.auth-page .auth-progress__item,
body.auth-page .submit-btn {
  color: #f9f9f9;
}

body.auth-page .auth-login-brand__copy small,
body.auth-page .auth-simple-brand__copy small,
body.auth-page .auth-panel__header--compact p,
body.auth-page .input-hint,
body.auth-page .password-requirements,
body.auth-page .password-match,
body.auth-page .auth-code-note {
  color: #a7a7a7;
}

body.auth-page .auth-panel__eyebrow {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(249, 249, 249, 0.1);
  color: #d9c3ab;
}

body.auth-page .auth-theme-toggle,
body.auth-page .toggle-password,
body.auth-page .footer-link {
  border: 1px solid rgba(249, 249, 249, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f9f9f9;
}

body.auth-page .auth-theme-toggle:hover,
body.auth-page .auth-theme-toggle:focus-visible,
body.auth-page .toggle-password:hover,
body.auth-page .toggle-password:focus-visible,
body.auth-page .footer-link:hover,
body.auth-page .footer-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 80, 2, 0.22);
  color: #ffffff;
}

body.auth-page .auth-theme-toggle {
  min-height: 3rem;
  padding: 0.65rem 1rem;
  font-weight: 800;
}

body.auth-page input[type="text"],
body.auth-page input[type="email"],
body.auth-page input[type="password"] {
  min-height: 3.3rem;
  border-color: rgba(249, 249, 249, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f9f9f9;
}

body.auth-page input::placeholder {
  color: rgba(249, 249, 249, 0.6);
}

body.auth-page .input-shell > i,
body.auth-page .input-icon {
  color: #a7a7a7;
}

body.auth-page input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 80, 2, 0.42);
  box-shadow: 0 0 0 4px rgba(232, 80, 2, 0.12);
}

body.auth-page .submit-btn {
  background: linear-gradient(135deg, #e85002, #f16001);
  box-shadow: 0 18px 38px rgba(232, 80, 2, 0.28);
}

body.auth-page .submit-btn:hover,
body.auth-page .submit-btn:focus-visible {
  box-shadow: 0 22px 42px rgba(232, 80, 2, 0.34);
}

body.auth-page .footer-link {
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.82rem 1rem;
  font-weight: 800;
}

body.auth-page .auth-progress__item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(249, 249, 249, 0.08);
}

body.auth-page .auth-progress__item span {
  background: rgba(255, 255, 255, 0.08);
  color: #f9f9f9;
}

body.auth-page .auth-progress__item.is-active {
  background: linear-gradient(180deg, rgba(232, 80, 2, 0.16), rgba(255, 255, 255, 0.04));
  border-color: rgba(232, 80, 2, 0.18);
}

body.auth-page .auth-progress__item.is-active span,
body.auth-page .auth-progress__item.is-complete span {
  background: linear-gradient(135deg, #e85002, #f16001);
  color: #050505;
}

body.auth-page .alert-success,
body.auth-page .alert-info,
body.auth-page .alert-warning,
body.auth-page .alert-danger,
body.auth-page .alert-error {
  border-color: rgba(249, 249, 249, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #f9f9f9;
}

body.auth-page .auth-login-topbar {
  align-items: center;
}

body.auth-page .auth-form-card--solo,
body.auth-page .auth-simple-card {
  gap: 1rem;
  padding: 1.35rem;
}

@media (max-width: 620px) {
  body.auth-page {
    overflow-y: auto;
  }

  body.auth-page .auth-stage {
    min-height: 100dvh;
    height: auto;
    padding: 1rem 0.8rem 1.5rem;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  body.auth-page .auth-login-shell--solo,
  body.auth-page .auth-simple-shell {
    min-height: auto;
    margin: auto;
    border-radius: 1.9rem;
    border: 1px solid rgba(249, 249, 249, 0.08);
  }

  body.auth-page .auth-form-card--solo,
  body.auth-page .auth-simple-card {
    padding: 1rem;
    border-radius: 1.45rem;
  }

  body.auth-page .auth-login-topbar {
    display: grid;
    gap: 0.8rem;
  }

  body.auth-page .auth-theme-toggle {
    width: 100%;
  }

  body.auth-page .auth-panel__header--compact {
    gap: 0.55rem;
  }

  body.auth-page .auth-panel__header--compact h1,
  body.auth-page .auth-panel__header--compact h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  body.auth-page .auth-panel__header--compact p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  body.auth-page .form-footer--compact {
    gap: 0.7rem;
  }
}

html[data-auth-theme="light"] body.auth-page {
  background:
    radial-gradient(circle at 88% 12%, rgba(48, 123, 142, 0.22), transparent 16rem),
    radial-gradient(circle at 12% 100%, rgba(54, 107, 43, 0.12), transparent 14rem),
    linear-gradient(180deg, #f7fcf9 0%, #eef5f1 52%, #dfeee6 100%);
}

html[data-auth-theme="light"] body.auth-page::before {
  background:
    linear-gradient(rgba(16, 58, 87, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 58, 87, 0.05) 1px, transparent 1px);
}

html[data-auth-theme="light"] body.auth-page::after {
  background:
    radial-gradient(circle at center, transparent 40%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(223, 238, 230, 0.24));
}

html[data-auth-theme="light"] body.auth-page .auth-login-shell--solo,
html[data-auth-theme="light"] body.auth-page .auth-simple-shell,
html[data-auth-theme="light"] body.auth-page .auth-form-card--solo {
  border-color: rgba(16, 58, 87, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 248, 0.78));
  box-shadow: 0 20px 60px rgba(16, 58, 87, 0.12);
}

html[data-auth-theme="light"] body.auth-page .auth-login-brand__mark,
html[data-auth-theme="light"] body.auth-page .auth-simple-brand__mark {
  background: linear-gradient(135deg, #e85002, #f16001);
}

html[data-auth-theme="light"] body.auth-page .auth-login-brand__copy strong,
html[data-auth-theme="light"] body.auth-page .auth-simple-brand__copy strong,
html[data-auth-theme="light"] body.auth-page .auth-panel__header--compact h1,
html[data-auth-theme="light"] body.auth-page .auth-panel__header--compact h2,
html[data-auth-theme="light"] body.auth-page .auth-progress__item strong,
html[data-auth-theme="light"] body.auth-page .form-group label {
  color: #103a57;
}

html[data-auth-theme="light"] body.auth-page .auth-login-brand__copy small,
html[data-auth-theme="light"] body.auth-page .auth-simple-brand__copy small,
html[data-auth-theme="light"] body.auth-page .auth-panel__header--compact p,
html[data-auth-theme="light"] body.auth-page .input-hint,
html[data-auth-theme="light"] body.auth-page .password-requirements,
html[data-auth-theme="light"] body.auth-page .password-match,
html[data-auth-theme="light"] body.auth-page .auth-code-note {
  color: #476a74;
}

html[data-auth-theme="light"] body.auth-page .auth-panel__header--compact p strong,
html[data-auth-theme="light"] body.auth-page .requirement.met,
html[data-auth-theme="light"] body.auth-page .match-text.valid {
  color: #103a57;
}

html[data-auth-theme="light"] body.auth-page .requirement.unmet,
html[data-auth-theme="light"] body.auth-page .match-text.invalid {
  color: #a23d2f;
}

html[data-auth-theme="light"] body.auth-page .auth-theme-toggle,
html[data-auth-theme="light"] body.auth-page .toggle-password,
html[data-auth-theme="light"] body.auth-page .footer-link {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 58, 87, 0.1);
  color: #103a57;
}

html[data-auth-theme="light"] body.auth-page input[type="text"],
html[data-auth-theme="light"] body.auth-page input[type="email"],
html[data-auth-theme="light"] body.auth-page input[type="password"] {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(16, 58, 87, 0.12);
  color: #103a57;
}

html[data-auth-theme="light"] body.auth-page input::placeholder {
  color: #62828b;
}

html[data-auth-theme="light"] body.auth-page .input-shell > i,
html[data-auth-theme="light"] body.auth-page .input-icon {
  color: #7d8f96;
}

html[data-auth-theme="light"] body.auth-page .auth-progress__item {
  background: rgba(16, 58, 87, 0.045);
  border-color: rgba(16, 58, 87, 0.12);
  color: #103a57;
}

html[data-auth-theme="light"] body.auth-page .auth-progress__item span {
  background: rgba(16, 58, 87, 0.1);
  color: #103a57;
}

html[data-auth-theme="light"] body.auth-page .auth-progress__item.is-active {
  background: linear-gradient(180deg, rgba(232, 80, 2, 0.08), rgba(255, 255, 255, 0.75));
  border-color: rgba(232, 80, 2, 0.22);
}

html[data-auth-theme="light"] body.auth-page .auth-progress__item.is-active span,
html[data-auth-theme="light"] body.auth-page .auth-progress__item.is-complete span {
  background: linear-gradient(135deg, #e85002, #f16001);
  color: #ffffff;
}

html[data-auth-theme="light"] body.auth-page .auth-progress__item.is-complete {
  background: rgba(54, 107, 43, 0.08);
  border-color: rgba(54, 107, 43, 0.16);
}

html[data-auth-theme="light"] body.auth-page .auth-progress__item.is-complete strong {
  color: #103a57;
}

html[data-auth-theme="light"] body.auth-page .auth-theme-toggle,
html[data-auth-theme="light"] body.auth-page .toggle-password {
  box-shadow: none;
}

html[data-auth-theme="light"] body.auth-page .footer-link {
  color: #123f59;
}

html[data-auth-theme="light"] body.auth-page .alert-success,
html[data-auth-theme="light"] body.auth-page .alert-info,
html[data-auth-theme="light"] body.auth-page .alert-warning,
html[data-auth-theme="light"] body.auth-page .alert-danger,
html[data-auth-theme="light"] body.auth-page .alert-error {
  color: #103a57;
  border-color: rgba(16, 58, 87, 0.1);
}

html[data-auth-theme="light"] body.auth-page .submit-btn {
  color: #ffffff;
}

html[data-auth-theme="dark"] body.auth-page .auth-login-shell--solo,
html[data-auth-theme="dark"] body.auth-page .auth-simple-shell,
html[data-auth-theme="dark"] body.auth-page .auth-form-card--solo {
  border-color: rgba(249, 249, 249, 0.1);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.88), rgba(12, 12, 12, 0.8));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

html[data-auth-theme="dark"] body.auth-page .auth-login-brand__copy strong,
html[data-auth-theme="dark"] body.auth-page .auth-simple-brand__copy strong,
html[data-auth-theme="dark"] body.auth-page .auth-panel__header--compact h1,
html[data-auth-theme="dark"] body.auth-page .auth-panel__header--compact h2,
html[data-auth-theme="dark"] body.auth-page .auth-progress__item strong,
html[data-auth-theme="dark"] body.auth-page .form-group label,
html[data-auth-theme="dark"] body.auth-page .auth-theme-toggle,
html[data-auth-theme="dark"] body.auth-page .toggle-password,
html[data-auth-theme="dark"] body.auth-page .footer-link,
html[data-auth-theme="dark"] body.auth-page input[type="text"],
html[data-auth-theme="dark"] body.auth-page input[type="email"],
html[data-auth-theme="dark"] body.auth-page input[type="password"] {
  color: #f9f9f9;
}

html[data-auth-theme="dark"] body.auth-page .auth-login-brand__copy small,
html[data-auth-theme="dark"] body.auth-page .auth-simple-brand__copy small,
html[data-auth-theme="dark"] body.auth-page .auth-panel__header--compact p,
html[data-auth-theme="dark"] body.auth-page .input-hint,
html[data-auth-theme="dark"] body.auth-page .password-requirements,
html[data-auth-theme="dark"] body.auth-page .password-match,
html[data-auth-theme="dark"] body.auth-page .auth-code-note {
  color: #a7a7a7;
}

html[data-auth-theme="dark"] body.auth-page .auth-theme-toggle,
html[data-auth-theme="dark"] body.auth-page .toggle-password,
html[data-auth-theme="dark"] body.auth-page .footer-link,
html[data-auth-theme="dark"] body.auth-page input[type="text"],
html[data-auth-theme="dark"] body.auth-page input[type="email"],
html[data-auth-theme="dark"] body.auth-page input[type="password"],
html[data-auth-theme="dark"] body.auth-page .auth-progress__item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(249, 249, 249, 0.1);
}

html[data-auth-theme="dark"] body.auth-page .auth-panel__eyebrow {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(249, 249, 249, 0.1);
  color: #d9c3ab;
}

html[data-auth-theme="dark"] body.auth-page .auth-progress__item span {
  background: rgba(255, 255, 255, 0.08);
  color: #f9f9f9;
}

html[data-auth-theme="dark"] body.auth-page .auth-progress__item.is-active {
  background: linear-gradient(180deg, rgba(232, 80, 2, 0.16), rgba(255, 255, 255, 0.04));
  border-color: rgba(232, 80, 2, 0.18);
}

html[data-auth-theme="dark"] body.auth-page .auth-progress__item.is-active span,
html[data-auth-theme="dark"] body.auth-page .auth-progress__item.is-complete span,
html[data-auth-theme="dark"] body.auth-page .submit-btn {
  background: linear-gradient(135deg, #e85002, #f16001);
  color: #050505;
}

html[data-auth-theme="dark"] body.auth-page input::placeholder {
  color: rgba(249, 249, 249, 0.6);
}

html[data-auth-theme="dark"] body.auth-page input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 80, 2, 0.42);
  box-shadow: 0 0 0 4px rgba(232, 80, 2, 0.12);
}

body.auth-page .alert {
  position: relative;
  padding: 1rem 1rem 1rem 1.15rem;
  border-width: 1px;
  border-style: solid;
  border-radius: 1.1rem;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

body.auth-page .alert::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 4px;
  border-radius: 999px;
  opacity: 0.95;
}

body.auth-page .alert-success {
  padding-left: 1.35rem;
  background: linear-gradient(180deg, rgba(56, 142, 89, 0.18), rgba(56, 142, 89, 0.1));
  border-color: rgba(56, 142, 89, 0.34);
  color: #1b5e36;
}

body.auth-page .alert-success::before {
  background: #2d8a57;
}

body.auth-page .alert-info,
body.auth-page .alert-warning {
  padding-left: 1.35rem;
  background: linear-gradient(180deg, rgba(232, 80, 2, 0.18), rgba(232, 80, 2, 0.1));
  border-color: rgba(232, 80, 2, 0.34);
  color: #8f2e00;
}

body.auth-page .alert-info::before,
body.auth-page .alert-warning::before {
  background: #e85002;
}

body.auth-page .alert-danger,
body.auth-page .alert-error {
  padding-left: 1.35rem;
  background: linear-gradient(180deg, rgba(193, 8, 1, 0.18), rgba(193, 8, 1, 0.1));
  border-color: rgba(193, 8, 1, 0.34);
  color: #8f1f1b;
}

body.auth-page .alert-danger::before,
body.auth-page .alert-error::before {
  background: #c10801;
}

html[data-auth-theme="dark"] body.auth-page .alert {
  color: #f9f9f9;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

html[data-auth-theme="dark"] body.auth-page .alert-success {
  background: linear-gradient(180deg, rgba(45, 138, 87, 0.22), rgba(45, 138, 87, 0.12));
  border-color: rgba(88, 190, 129, 0.28);
  color: #dbf7e8;
}

html[data-auth-theme="dark"] body.auth-page .alert-info,
html[data-auth-theme="dark"] body.auth-page .alert-warning {
  background: linear-gradient(180deg, rgba(232, 80, 2, 0.24), rgba(232, 80, 2, 0.12));
  border-color: rgba(255, 135, 72, 0.3);
  color: #ffe3d3;
}

html[data-auth-theme="dark"] body.auth-page .alert-danger,
html[data-auth-theme="dark"] body.auth-page .alert-error {
  background: linear-gradient(180deg, rgba(193, 8, 1, 0.24), rgba(193, 8, 1, 0.12));
  border-color: rgba(255, 112, 107, 0.28);
  color: #ffd9d7;
}

html[data-auth-theme="dark"] body.auth-page .welcome-overlay {
  background:
    radial-gradient(circle at 20% 20%, rgba(54, 107, 43, 0.14), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(48, 123, 142, 0.18), transparent 26%),
    linear-gradient(160deg, rgba(5, 17, 25, 0.97), rgba(11, 36, 53, 0.98));
}

body.auth-page .welcome-overlay {
  display: none !important;
}

/* Inicio background sync for auth */
body.auth-page {
  background:
    radial-gradient(circle at top left, rgba(241, 96, 1, 0.14), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(193, 8, 1, 0.14), transparent 22rem),
    linear-gradient(180deg, #030303 0%, #080808 36%, #050505 100%);
}

body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 100%);
  pointer-events: none;
  z-index: 0;
}

body.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
  pointer-events: none;
  z-index: 0;
}

body.auth-page .auth-stage::before,
body.auth-page .auth-stage::after {
  display: none;
}

body.auth-page .page-motion {
  position: fixed;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 0;
}

body.auth-page .page-motion__columns,
body.auth-page .page-motion__column,
body.auth-page .page-motion__glow,
body.auth-page .page-motion__haze,
body.auth-page .page-motion__noise {
  position: absolute;
}

body.auth-page .page-motion__columns {
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(0.7rem, 1vw, 1.1rem);
  padding: 0 clamp(0.9rem, 3vw, 2.2rem);
  opacity: 0.94;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.94) 8%, rgba(0, 0, 0, 0.96) 92%, transparent 100%);
}

body.auth-page .page-motion__column {
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.034);
  border-right: 1px solid rgba(255, 255, 255, 0.016);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008)),
    linear-gradient(180deg, rgba(232, 80, 2, 0.02), transparent 18%, rgba(193, 8, 1, 0.03) 76%, rgba(255, 255, 255, 0.012));
  opacity: 0.58;
}

body.auth-page .page-motion__column::before,
body.auth-page .page-motion__column::after {
  content: "";
  position: absolute;
  inset: -30% 0;
}

body.auth-page .page-motion__column::before {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.024) 16%,
      rgba(232, 80, 2, 0.18) 40%,
      rgba(241, 96, 1, 0.62) 58%,
      rgba(255, 247, 229, 0.92) 70%,
      rgba(241, 96, 1, 0.34) 82%,
      transparent 100%
    );
  filter: blur(10px);
  transform: translateY(-120%);
  animation: authColumnFlow 11.5s linear infinite;
}

body.auth-page .page-motion__column::after {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.02) 18%,
      rgba(232, 80, 2, 0.1) 42%,
      rgba(232, 80, 2, 0.24) 60%,
      rgba(255, 255, 255, 0.06) 75%,
      transparent 100%
    );
  opacity: 0.55;
  transform: translateY(-135%);
  animation: authColumnFlowSoft 15s linear infinite;
}

body.auth-page .page-motion__column:nth-child(1)::before { animation-delay: -2.8s; }
body.auth-page .page-motion__column:nth-child(2)::before { animation-delay: -7.2s; }
body.auth-page .page-motion__column:nth-child(3)::before { animation-delay: -4.6s; }
body.auth-page .page-motion__column:nth-child(4)::before { animation-delay: -9.8s; }
body.auth-page .page-motion__column:nth-child(5)::before { animation-delay: -1.6s; }
body.auth-page .page-motion__column:nth-child(6)::before { animation-delay: -6.4s; }
body.auth-page .page-motion__column:nth-child(7)::before { animation-delay: -10.6s; }
body.auth-page .page-motion__column:nth-child(8)::before { animation-delay: -3.8s; }
body.auth-page .page-motion__column:nth-child(odd)::after { animation-delay: -5.4s; }
body.auth-page .page-motion__column:nth-child(3n)::after { animation-delay: -9.2s; }

body.auth-page .page-motion__glow,
body.auth-page .page-motion__haze {
  border-radius: 50%;
  filter: blur(30px);
}

body.auth-page .page-motion__glow {
  opacity: 0.16;
  animation: authAmbientFloat 18s ease-in-out infinite;
}

body.auth-page .page-motion__glow--one {
  top: 12%;
  left: -10%;
  width: min(30rem, 40vw);
  height: min(30rem, 40vw);
  background: radial-gradient(circle, rgba(232, 80, 2, 0.22), transparent 72%);
}

body.auth-page .page-motion__glow--two {
  right: -12%;
  bottom: 10%;
  width: min(24rem, 34vw);
  height: min(24rem, 34vw);
  background: radial-gradient(circle, rgba(193, 8, 1, 0.18), transparent 72%);
  animation-delay: -7s;
}

body.auth-page .page-motion__haze {
  width: 52vw;
  height: 8rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  opacity: 0.12;
  transform: rotate(-8deg);
  animation: authHazeSweep 17s linear infinite;
}

body.auth-page .page-motion__haze--one {
  top: 16%;
  left: -8%;
}

body.auth-page .page-motion__haze--two {
  bottom: 18%;
  right: -12%;
  opacity: 0.08;
  animation-delay: -9s;
}

body.auth-page .page-motion__noise {
  inset: 0;
  opacity: 0.045;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.2px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.2px),
    radial-gradient(circle at 36% 74%, rgba(232, 80, 2, 0.16) 0 1px, transparent 1.3px);
  background-size: 16rem 16rem, 18rem 18rem, 14rem 14rem;
  animation: authNoiseDrift 22s linear infinite;
}

html[data-auth-theme="light"] body.auth-page {
  background:
    radial-gradient(circle at 88% 12%, rgba(48, 123, 142, 0.24), transparent 16rem),
    radial-gradient(circle at 12% 100%, rgba(54, 107, 43, 0.12), transparent 14rem),
    linear-gradient(180deg, #f7fcf9 0%, #eef5f1 52%, #dfeee6 100%);
}

html[data-auth-theme="light"] body.auth-page::before {
  background:
    linear-gradient(rgba(16, 58, 87, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 58, 87, 0.05) 1px, transparent 1px);
}

html[data-auth-theme="light"] body.auth-page::after {
  background:
    radial-gradient(circle at center, transparent 40%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(223, 238, 230, 0.24));
}

html[data-auth-theme="light"] body.auth-page .page-motion__column {
  border-left-color: rgba(16, 58, 87, 0.06);
  border-right-color: rgba(16, 58, 87, 0.03);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, rgba(48, 123, 142, 0.03), transparent 18%, rgba(54, 107, 43, 0.04) 76%, rgba(255, 255, 255, 0.18));
}

html[data-auth-theme="light"] body.auth-page .page-motion__column::before {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 16%,
      rgba(48, 123, 142, 0.16) 40%,
      rgba(48, 123, 142, 0.34) 58%,
      rgba(255, 255, 255, 0.84) 70%,
      rgba(54, 107, 43, 0.18) 82%,
      transparent 100%
    );
}

html[data-auth-theme="light"] body.auth-page .page-motion__column::after {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.12) 18%,
      rgba(48, 123, 142, 0.08) 42%,
      rgba(54, 107, 43, 0.14) 60%,
      rgba(255, 255, 255, 0.28) 75%,
      transparent 100%
    );
}

html[data-auth-theme="light"] body.auth-page .page-motion__glow--one {
  background: radial-gradient(circle, rgba(48, 123, 142, 0.18), transparent 72%);
}

html[data-auth-theme="light"] body.auth-page .page-motion__glow--two {
  background: radial-gradient(circle, rgba(54, 107, 43, 0.16), transparent 72%);
}

html[data-auth-theme="light"] body.auth-page .page-motion__haze {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}

html[data-auth-theme="light"] body.auth-page .page-motion__noise {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(16, 58, 87, 0.14) 0 1px, transparent 1.2px),
    radial-gradient(circle at 80% 30%, rgba(16, 58, 87, 0.1) 0 1px, transparent 1.2px),
    radial-gradient(circle at 36% 74%, rgba(54, 107, 43, 0.12) 0 1px, transparent 1.3px);
}

@keyframes authColumnFlow {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(120%); }
}

@keyframes authColumnFlowSoft {
  0% { transform: translateY(-135%); }
  100% { transform: translateY(135%); }
}

@keyframes authAmbientFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(1.4rem, -1rem, 0) scale(1.06); }
}

@keyframes authHazeSweep {
  0% { transform: translate3d(-12vw, 0, 0) rotate(-8deg); }
  100% { transform: translate3d(18vw, 0, 0) rotate(-8deg); }
}

@keyframes authNoiseDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-1rem, 1rem, 0); }
}

@media (max-width: 640px) {
  body.auth-page .page-motion__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0 0.55rem;
  }

  body.auth-page .page-motion__haze {
    width: 75vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-page .page-motion__column::before,
  body.auth-page .page-motion__column::after,
  body.auth-page .page-motion__glow,
  body.auth-page .page-motion__haze,
  body.auth-page .page-motion__noise {
    animation: none !important;
  }
}

/* Auth wave background */
body.auth-page .auth-stage {
  isolation: isolate;
}

body.auth-page .auth-login-shell--solo,
body.auth-page .auth-simple-shell,
body.auth-page .welcome-overlay {
  position: relative;
  z-index: 2;
}

body.auth-page .auth-stage::before,
body.auth-page .auth-stage::after {
  content: "";
  position: fixed;
  left: -18vw;
  width: 136vw;
  height: 30vh;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.82;
  pointer-events: none;
  z-index: 1;
  background-repeat: repeat-x;
}

body.auth-page .auth-stage::before {
  top: 16vh;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 4.8rem,
      rgba(255, 255, 255, 0.035) 4.8rem 4.95rem,
      transparent 4.95rem 9.4rem
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    radial-gradient(72% 120% at 50% 10%, rgba(232, 80, 2, 0.16), transparent 72%);
  clip-path: ellipse(48% 42% at 50% 50%);
  animation: authWaveRight 18s ease-in-out infinite alternate;
}

body.auth-page .auth-stage::after {
  bottom: 14vh;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 5.4rem,
      rgba(255, 255, 255, 0.032) 5.4rem 5.55rem,
      transparent 5.55rem 10.2rem
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008)),
    radial-gradient(72% 120% at 50% 90%, rgba(48, 123, 142, 0.16), transparent 72%);
  clip-path: ellipse(48% 42% at 50% 50%);
  animation: authWaveLeft 20s ease-in-out infinite alternate;
}

html[data-auth-theme="light"] body.auth-page .auth-stage::before {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 4.8rem,
      rgba(16, 58, 87, 0.04) 4.8rem 4.95rem,
      transparent 4.95rem 9.4rem
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(72% 120% at 50% 10%, rgba(232, 80, 2, 0.11), transparent 72%);
  opacity: 0.5;
}

html[data-auth-theme="light"] body.auth-page .auth-stage::after {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 5.4rem,
      rgba(16, 58, 87, 0.035) 5.4rem 5.55rem,
      transparent 5.55rem 10.2rem
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    radial-gradient(72% 120% at 50% 90%, rgba(48, 123, 142, 0.11), transparent 72%);
  opacity: 0.46;
}

@keyframes authWaveRight {
  0% {
    transform: translate3d(-8vw, -0.6rem, 0) scaleX(0.98) rotate(-4deg);
  }

  100% {
    transform: translate3d(8vw, 0.6rem, 0) scaleX(1.03) rotate(2deg);
  }
}

@keyframes authWaveLeft {
  0% {
    transform: translate3d(8vw, 0.7rem, 0) scaleX(1.02) rotate(4deg);
  }

  100% {
    transform: translate3d(-8vw, -0.6rem, 0) scaleX(0.98) rotate(-2deg);
  }
}

@media (max-width: 620px) {
  body.auth-page .auth-stage::before,
  body.auth-page .auth-stage::after {
    left: -30vw;
    width: 160vw;
    height: 24vh;
    filter: blur(18px);
    opacity: 0.58;
  }

  body.auth-page .auth-stage::before {
    top: 18vh;
  }

  body.auth-page .auth-stage::after {
    bottom: 18vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-page .auth-stage::before,
  body.auth-page .auth-stage::after {
    animation: none;
  }
}

/* Final auth background sync with inicio */
body.auth-page {
  background:
    radial-gradient(circle at top left, rgba(241, 96, 1, 0.14), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(193, 8, 1, 0.14), transparent 22rem),
    linear-gradient(180deg, #030303 0%, #080808 36%, #050505 100%);
}

body.auth-page::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 100%);
}

body.auth-page::after {
  background:
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
}

body.auth-page .page-motion {
  display: block;
}

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

body.auth-page .auth-stage,
body.auth-page .welcome-overlay,
body.auth-page .auth-login-shell--solo,
body.auth-page .auth-simple-shell {
  position: relative;
}

body.auth-page .auth-stage,
body.auth-page .welcome-overlay {
  z-index: 1;
}

body.auth-page .auth-login-shell--solo,
body.auth-page .auth-simple-shell {
  z-index: 2;
}

html[data-auth-theme="light"] body.auth-page {
  background:
    radial-gradient(circle at 88% 12%, rgba(48, 123, 142, 0.24), transparent 16rem),
    radial-gradient(circle at 12% 100%, rgba(54, 107, 43, 0.12), transparent 14rem),
    linear-gradient(180deg, #f7fcf9 0%, #eef5f1 52%, #dfeee6 100%);
}

html[data-auth-theme="light"] body.auth-page::before {
  background:
    linear-gradient(rgba(16, 58, 87, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 58, 87, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 100%);
}

html[data-auth-theme="light"] body.auth-page::after {
  background:
    radial-gradient(circle at center, transparent 40%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(223, 238, 230, 0.24));
}

html[data-auth-theme="light"] body.auth-page .page-motion__columns {
  opacity: 1;
}

html[data-auth-theme="light"] body.auth-page .page-motion__column {
  opacity: 0.7;
}

html[data-auth-theme="light"] body.auth-page .page-motion__glow {
  opacity: 0.2;
}

html[data-auth-theme="light"] body.auth-page .page-motion__haze {
  opacity: 0.16;
}

html[data-auth-theme="light"] body.auth-page .page-motion__noise {
  opacity: 0.06;
}

/* Final auth palette sync with inicio */
body.auth-page {
  --auth-ui-shell-top: rgba(28, 28, 28, 0.92);
  --auth-ui-shell-bottom: rgba(16, 16, 16, 0.84);
  --auth-ui-card-top: rgba(28, 28, 28, 0.9);
  --auth-ui-card-bottom: rgba(16, 16, 16, 0.76);
  --auth-ui-soft-top: rgba(232, 80, 2, 0.18);
  --auth-ui-soft-bottom: rgba(193, 8, 1, 0.08);
  --auth-ui-story-glow-one: rgba(255, 255, 255, 0.12);
  --auth-ui-story-glow-two: rgba(241, 96, 1, 0.18);
  --auth-ui-story-top: #101010;
  --auth-ui-story-mid: #29170f;
  --auth-ui-story-bottom: #0d0d0d;
  --auth-ui-surface: rgba(255, 255, 255, 0.05);
  --auth-ui-surface-strong: rgba(255, 255, 255, 0.08);
  --auth-ui-border: rgba(249, 249, 249, 0.1);
  --auth-ui-border-strong: rgba(232, 80, 2, 0.24);
  --auth-ui-text: #f9f9f9;
  --auth-ui-text-soft: #dbdbdb;
  --auth-ui-text-muted: #a7a7a7;
  --auth-ui-accent: #e85002;
  --auth-ui-accent-strong: #f16001;
  --auth-ui-accent-deep: #c10801;
  --auth-ui-badge-text: #d9c3ab;
  --auth-ui-link-bg: rgba(255, 255, 255, 0.04);
  --auth-ui-input-bg: rgba(255, 255, 255, 0.05);
  --auth-ui-input-focus: rgba(255, 255, 255, 0.08);
  --auth-ui-button-text: #050505;
  --auth-ui-mark-text: #050505;
  --auth-ui-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  color: var(--auth-ui-text);
}

html[data-auth-theme="light"] body.auth-page {
  --auth-ui-shell-top: rgba(251, 254, 252, 0.9);
  --auth-ui-shell-bottom: rgba(246, 251, 248, 0.8);
  --auth-ui-card-top: rgba(255, 255, 255, 0.94);
  --auth-ui-card-bottom: rgba(248, 252, 250, 0.84);
  --auth-ui-soft-top: rgba(48, 123, 142, 0.14);
  --auth-ui-soft-bottom: rgba(54, 107, 43, 0.08);
  --auth-ui-story-glow-one: rgba(255, 255, 255, 0.14);
  --auth-ui-story-glow-two: rgba(169, 211, 197, 0.18);
  --auth-ui-story-top: #103a57;
  --auth-ui-story-mid: #307b8e;
  --auth-ui-story-bottom: #366b2b;
  --auth-ui-surface: rgba(255, 255, 255, 0.72);
  --auth-ui-surface-strong: rgba(255, 255, 255, 0.86);
  --auth-ui-border: rgba(16, 58, 87, 0.11);
  --auth-ui-border-strong: rgba(48, 123, 142, 0.24);
  --auth-ui-text: #103a57;
  --auth-ui-text-soft: #295867;
  --auth-ui-text-muted: #4d727b;
  --auth-ui-accent: #307b8e;
  --auth-ui-accent-strong: #103a57;
  --auth-ui-accent-deep: #366b2b;
  --auth-ui-badge-text: #103a57;
  --auth-ui-link-bg: rgba(255, 255, 255, 0.72);
  --auth-ui-input-bg: rgba(255, 255, 255, 0.86);
  --auth-ui-input-focus: #ffffff;
  --auth-ui-button-text: #f9f9f9;
  --auth-ui-mark-text: #050505;
  --auth-ui-shadow: 0 20px 60px rgba(16, 58, 87, 0.12);
  color: var(--auth-ui-text);
}

body.auth-page .auth-shell,
body.auth-page .auth-login-shell--solo,
body.auth-page .auth-simple-shell,
body.auth-page .auth-form-card--solo {
  border-color: var(--auth-ui-border);
  background: linear-gradient(180deg, var(--auth-ui-shell-top), var(--auth-ui-shell-bottom));
  box-shadow: var(--auth-ui-shadow);
}

body.auth-page .auth-story,
body.auth-page .auth-login-aside {
  color: #f9f9f9;
  background:
    radial-gradient(circle at 18% 18%, var(--auth-ui-story-glow-one), transparent 28%),
    radial-gradient(circle at 82% 12%, var(--auth-ui-story-glow-two), transparent 24%),
    linear-gradient(155deg, var(--auth-ui-story-top) 0%, var(--auth-ui-story-mid) 58%, var(--auth-ui-story-bottom) 100%);
}

body.auth-page .auth-brand__mark,
body.auth-page .auth-login-brand__mark,
body.auth-page .auth-simple-brand__mark {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, var(--auth-ui-accent), var(--auth-ui-accent-strong));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--auth-ui-accent) 34%, transparent);
}

body.auth-page .auth-brand__mark::before,
body.auth-page .auth-login-brand__mark::before,
body.auth-page .auth-simple-brand__mark::before {
  color: var(--auth-ui-mark-text);
}

body.auth-page .auth-login-brand__copy strong,
body.auth-page .auth-simple-brand__copy strong,
body.auth-page .auth-panel__header--compact h1,
body.auth-page .auth-panel__header--compact h2,
body.auth-page .auth-panel__header h1,
body.auth-page .auth-progress__item strong,
body.auth-page .form-group label,
body.auth-page .auth-panel__header p strong {
  color: var(--auth-ui-text);
}

body.auth-page .auth-login-brand__copy small,
body.auth-page .auth-simple-brand__copy small,
body.auth-page .auth-panel__header--compact p,
body.auth-page .auth-panel__header p,
body.auth-page .input-hint,
body.auth-page .password-requirements,
body.auth-page .password-match,
body.auth-page .auth-code-note,
body.auth-page .panel-subtitle,
body.auth-page .auth-note,
body.auth-page .form-footer p {
  color: var(--auth-ui-text-soft);
}

body.auth-page .auth-card,
body.auth-page .auth-help-card,
body.auth-page .auth-code-box,
body.auth-page .auth-preview-window,
body.auth-page .auth-preview-card,
body.auth-page .auth-kpi,
body.auth-page .auth-step,
body.auth-page .auth-inline-meta span,
body.auth-page .auth-progress__item {
  border-color: var(--auth-ui-border);
  background: linear-gradient(180deg, var(--auth-ui-card-top), var(--auth-ui-card-bottom));
}

body.auth-page .auth-card--soft {
  background: linear-gradient(135deg, var(--auth-ui-soft-top), var(--auth-ui-soft-bottom));
  border-color: var(--auth-ui-border-strong);
}

body.auth-page .auth-panel__eyebrow {
  background: var(--auth-ui-surface);
  border-color: var(--auth-ui-border);
  color: var(--auth-ui-badge-text);
}

body.auth-page .auth-theme-toggle,
body.auth-page .toggle-password,
body.auth-page .footer-link {
  background: var(--auth-ui-link-bg);
  border-color: var(--auth-ui-border);
  color: var(--auth-ui-text);
}

body.auth-page input[type="text"],
body.auth-page input[type="email"],
body.auth-page input[type="password"] {
  background: var(--auth-ui-input-bg);
  border-color: var(--auth-ui-border);
  color: var(--auth-ui-text);
}

body.auth-page input::placeholder {
  color: color-mix(in srgb, var(--auth-ui-text-muted) 78%, white 22%);
}

body.auth-page .input-shell > i,
body.auth-page .input-icon {
  color: var(--auth-ui-text-muted);
}

body.auth-page input:focus {
  background: var(--auth-ui-input-focus);
  border-color: color-mix(in srgb, var(--auth-ui-accent) 58%, white 42%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-ui-accent) 16%, transparent);
}

body.auth-page .submit-btn,
body.auth-page .auth-progress__item.is-active span,
body.auth-page .auth-progress__item.is-complete span {
  background: linear-gradient(135deg, var(--auth-ui-accent), var(--auth-ui-accent-strong));
  color: var(--auth-ui-button-text);
}

body.auth-page .submit-btn {
  box-shadow: 0 18px 38px color-mix(in srgb, var(--auth-ui-accent) 28%, transparent);
}

body.auth-page .submit-btn:hover,
body.auth-page .submit-btn:focus-visible {
  box-shadow: 0 22px 42px color-mix(in srgb, var(--auth-ui-accent) 34%, transparent);
}

body.auth-page .auth-progress__item.is-active,
body.auth-page .auth-step.is-active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--auth-ui-accent) 16%, transparent), var(--auth-ui-card-bottom));
  border-color: var(--auth-ui-border-strong);
}

body.auth-page .auth-step.is-complete,
body.auth-page .auth-progress__item.is-complete {
  border-color: var(--auth-ui-border-strong);
}

html[data-auth-theme="light"] body.auth-page .page-motion__columns {
  opacity: 0.94;
}

html[data-auth-theme="light"] body.auth-page .page-motion__column {
  opacity: 0.58;
}

html[data-auth-theme="light"] body.auth-page .page-motion__glow {
  opacity: 0.16;
}

html[data-auth-theme="light"] body.auth-page .page-motion__haze {
  opacity: 0.12;
}

html[data-auth-theme="light"] body.auth-page .page-motion__noise {
  opacity: 0.045;
}

/* Shared auth palette aligned with inicio.html */
body.auth-page {
  --auth-ui-shell-top: rgba(28, 28, 28, 0.9);
  --auth-ui-shell-bottom: rgba(20, 20, 20, 0.72);
  --auth-ui-card-top: rgba(28, 28, 28, 0.9);
  --auth-ui-card-bottom: rgba(43, 43, 43, 0.82);
  --auth-ui-soft-top: rgba(232, 80, 2, 0.18);
  --auth-ui-soft-bottom: rgba(193, 8, 1, 0.08);
  --auth-ui-story-glow-one: rgba(255, 255, 255, 0.12);
  --auth-ui-story-glow-two: rgba(241, 96, 1, 0.18);
  --auth-ui-story-top: #050505;
  --auth-ui-story-mid: #0d0d0d;
  --auth-ui-story-bottom: #121212;
  --auth-ui-border: rgba(249, 249, 249, 0.1);
  --auth-ui-border-strong: rgba(232, 80, 2, 0.32);
  --auth-ui-text: #f9f9f9;
  --auth-ui-text-soft: #dbdbdb;
  --auth-ui-text-muted: #a7a7a7;
  --auth-ui-accent: #e85002;
  --auth-ui-accent-strong: #f16001;
  --auth-ui-accent-deep: #c10801;
  --auth-ui-input-bg: rgba(255, 255, 255, 0.05);
  --auth-ui-input-focus: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(241, 96, 1, 0.14), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(193, 8, 1, 0.14), transparent 22rem),
    linear-gradient(180deg, #030303 0%, #080808 36%, #050505 100%);
}

body.auth-page::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 100%);
}

body.auth-page::after {
  background:
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
}

body.auth-page .page-motion__columns {
  opacity: 0.94;
}

body.auth-page .page-motion__column {
  border-left-color: rgba(255, 255, 255, 0.034);
  border-right-color: rgba(255, 255, 255, 0.016);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008)),
    linear-gradient(180deg, rgba(232, 80, 2, 0.02), transparent 18%, rgba(193, 8, 1, 0.03) 76%, rgba(255, 255, 255, 0.012));
  opacity: 0.58;
}

body.auth-page .page-motion__column::before {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.024) 16%,
      rgba(232, 80, 2, 0.18) 40%,
      rgba(241, 96, 1, 0.62) 58%,
      rgba(255, 247, 229, 0.92) 70%,
      rgba(241, 96, 1, 0.34) 82%,
      transparent 100%
    );
}

body.auth-page .page-motion__column::after {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.02) 18%,
      rgba(232, 80, 2, 0.1) 42%,
      rgba(232, 80, 2, 0.24) 60%,
      rgba(255, 255, 255, 0.06) 75%,
      transparent 100%
    );
  opacity: 0.55;
}

body.auth-page .page-motion__glow--one {
  background: radial-gradient(circle, rgba(232, 80, 2, 0.22), transparent 72%);
}

body.auth-page .page-motion__glow--two {
  background: radial-gradient(circle, rgba(193, 8, 1, 0.18), transparent 72%);
}

body.auth-page .page-motion__haze {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  opacity: 0.12;
}

body.auth-page .page-motion__noise {
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 76% 42%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 48% 78%, rgba(232, 80, 2, 0.16) 0, rgba(232, 80, 2, 0.16) 1px, transparent 1px);
  opacity: 0.045;
}

body.auth-page .welcome-overlay {
  background:
    radial-gradient(circle at 18% 18%, rgba(241, 96, 1, 0.16), transparent 22rem),
    radial-gradient(circle at 82% 12%, rgba(193, 8, 1, 0.12), transparent 20rem),
    linear-gradient(160deg, rgba(5, 5, 5, 0.98), rgba(13, 13, 13, 0.98) 58%, rgba(18, 18, 18, 0.98));
}

html[data-auth-theme="light"] body.auth-page {
  --auth-ui-shell-top: rgba(251, 254, 252, 0.88);
  --auth-ui-shell-bottom: rgba(255, 255, 255, 0.72);
  --auth-ui-card-top: rgba(251, 254, 252, 0.88);
  --auth-ui-card-bottom: rgba(232, 241, 236, 0.84);
  --auth-ui-soft-top: rgba(48, 123, 142, 0.14);
  --auth-ui-soft-bottom: rgba(54, 107, 43, 0.08);
  --auth-ui-story-glow-one: rgba(255, 255, 255, 0.14);
  --auth-ui-story-glow-two: rgba(169, 211, 197, 0.18);
  --auth-ui-story-top: #103a57;
  --auth-ui-story-mid: #307b8e;
  --auth-ui-story-bottom: #366b2b;
  --auth-ui-border: rgba(16, 58, 87, 0.11);
  --auth-ui-border-strong: rgba(48, 123, 142, 0.24);
  --auth-ui-text: #103a57;
  --auth-ui-text-soft: #295867;
  --auth-ui-text-muted: #4d727b;
  --auth-ui-accent: #307b8e;
  --auth-ui-accent-strong: #103a57;
  --auth-ui-accent-deep: #366b2b;
  --auth-ui-input-bg: rgba(255, 255, 255, 0.86);
  --auth-ui-input-focus: #ffffff;
  background:
    radial-gradient(circle at 88% 12%, rgba(48, 123, 142, 0.24), transparent 16rem),
    radial-gradient(circle at 12% 100%, rgba(54, 107, 43, 0.12), transparent 14rem),
    linear-gradient(180deg, #f7fcf9 0%, #eef5f1 52%, #dfeee6 100%);
}

html[data-auth-theme="light"] body.auth-page::before {
  background:
    linear-gradient(rgba(16, 58, 87, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 58, 87, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 100%);
}

html[data-auth-theme="light"] body.auth-page::after {
  background:
    radial-gradient(circle at center, transparent 38%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(223, 238, 230, 0.24));
}

html[data-auth-theme="light"] body.auth-page .page-motion__columns {
  opacity: 0.94;
}

html[data-auth-theme="light"] body.auth-page .page-motion__column {
  border-left-color: rgba(16, 58, 87, 0.06);
  border-right-color: rgba(16, 58, 87, 0.03);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, rgba(48, 123, 142, 0.03), transparent 18%, rgba(54, 107, 43, 0.04) 76%, rgba(255, 255, 255, 0.18));
  opacity: 0.58;
}

html[data-auth-theme="light"] body.auth-page .page-motion__column::before {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 16%,
      rgba(48, 123, 142, 0.16) 40%,
      rgba(48, 123, 142, 0.34) 58%,
      rgba(255, 255, 255, 0.84) 70%,
      rgba(54, 107, 43, 0.18) 82%,
      transparent 100%
    );
}

html[data-auth-theme="light"] body.auth-page .page-motion__column::after {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.12) 18%,
      rgba(48, 123, 142, 0.08) 42%,
      rgba(54, 107, 43, 0.14) 60%,
      rgba(255, 255, 255, 0.28) 75%,
      transparent 100%
    );
  opacity: 0.55;
}

html[data-auth-theme="light"] body.auth-page .page-motion__glow--one {
  background: radial-gradient(circle, rgba(48, 123, 142, 0.18), transparent 72%);
}

html[data-auth-theme="light"] body.auth-page .page-motion__glow--two {
  background: radial-gradient(circle, rgba(54, 107, 43, 0.16), transparent 72%);
}

html[data-auth-theme="light"] body.auth-page .page-motion__haze {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0.12;
}

html[data-auth-theme="light"] body.auth-page .page-motion__noise {
  background-image:
    radial-gradient(circle at 18% 24%, rgba(16, 58, 87, 0.12) 0, rgba(16, 58, 87, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 76% 42%, rgba(48, 123, 142, 0.12) 0, rgba(48, 123, 142, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 48% 78%, rgba(54, 107, 43, 0.14) 0, rgba(54, 107, 43, 0.14) 1px, transparent 1px);
  opacity: 0.045;
}

html[data-auth-theme="light"] body.auth-page .welcome-overlay {
  background:
    radial-gradient(circle at 18% 18%, rgba(48, 123, 142, 0.16), transparent 22rem),
    radial-gradient(circle at 82% 12%, rgba(54, 107, 43, 0.12), transparent 20rem),
    linear-gradient(160deg, rgba(246, 251, 248, 0.98), rgba(255, 255, 255, 0.98) 58%, rgba(223, 238, 230, 0.98));
}

/* Hard override so dark auth uses the exact inicio dark background instead of legacy blue layers */
html[data-auth-theme="dark"] body.auth-page {
  background:
    radial-gradient(circle at top left, rgba(241, 96, 1, 0.14), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(193, 8, 1, 0.14), transparent 22rem),
    linear-gradient(180deg, #030303 0%, #080808 36%, #050505 100%);
}

html[data-auth-theme="dark"] body.auth-page::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 100%);
}

html[data-auth-theme="dark"] body.auth-page::after {
  background:
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
}

html[data-auth-theme="dark"] body.auth-page .auth-stage::before,
html[data-auth-theme="dark"] body.auth-page .auth-stage::after {
  display: none !important;
}

html[data-auth-theme="dark"] body.auth-page .page-motion__columns {
  opacity: 0.94;
}

html[data-auth-theme="dark"] body.auth-page .page-motion__column {
  border-left-color: rgba(255, 255, 255, 0.034);
  border-right-color: rgba(255, 255, 255, 0.016);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008)),
    linear-gradient(180deg, rgba(232, 80, 2, 0.02), transparent 18%, rgba(193, 8, 1, 0.03) 76%, rgba(255, 255, 255, 0.012));
  opacity: 0.58;
}

html[data-auth-theme="dark"] body.auth-page .page-motion__column::before {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.024) 16%,
      rgba(232, 80, 2, 0.18) 40%,
      rgba(241, 96, 1, 0.62) 58%,
      rgba(255, 247, 229, 0.92) 70%,
      rgba(241, 96, 1, 0.34) 82%,
      transparent 100%
    );
}

html[data-auth-theme="dark"] body.auth-page .page-motion__column::after {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.02) 18%,
      rgba(232, 80, 2, 0.1) 42%,
      rgba(232, 80, 2, 0.24) 60%,
      rgba(255, 255, 255, 0.06) 75%,
      transparent 100%
    );
  opacity: 0.55;
}

html[data-auth-theme="dark"] body.auth-page .page-motion__glow--one {
  background: radial-gradient(circle, rgba(232, 80, 2, 0.22), transparent 72%);
}

html[data-auth-theme="dark"] body.auth-page .page-motion__glow--two {
  background: radial-gradient(circle, rgba(193, 8, 1, 0.18), transparent 72%);
}

html[data-auth-theme="dark"] body.auth-page .page-motion__haze {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  opacity: 0.12;
}

html[data-auth-theme="dark"] body.auth-page .page-motion__noise {
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 76% 42%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 48% 78%, rgba(232, 80, 2, 0.16) 0, rgba(232, 80, 2, 0.16) 1px, transparent 1px);
  opacity: 0.045;
}

html[data-auth-theme="dark"] body.auth-page .auth-shell,
html[data-auth-theme="dark"] body.auth-page .auth-login-shell--solo,
html[data-auth-theme="dark"] body.auth-page .auth-simple-shell,
html[data-auth-theme="dark"] body.auth-page .auth-form-card--solo {
  border-color: rgba(249, 249, 249, 0.1);
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.9), rgba(20, 20, 20, 0.72));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

html[data-auth-theme="dark"] body.auth-page .auth-story,
html[data-auth-theme="dark"] body.auth-page .auth-login-aside {
  background:
    radial-gradient(circle at 18% 18%, rgba(241, 96, 1, 0.16), transparent 22rem),
    radial-gradient(circle at 82% 12%, rgba(193, 8, 1, 0.12), transparent 20rem),
    linear-gradient(160deg, rgba(5, 5, 5, 0.98), rgba(13, 13, 13, 0.98) 58%, rgba(18, 18, 18, 0.98));
}

html[data-auth-theme="dark"] body.auth-page .welcome-overlay {
  background:
    radial-gradient(circle at 18% 18%, rgba(241, 96, 1, 0.16), transparent 22rem),
    radial-gradient(circle at 82% 12%, rgba(193, 8, 1, 0.12), transparent 20rem),
    linear-gradient(160deg, rgba(5, 5, 5, 0.98), rgba(13, 13, 13, 0.98) 58%, rgba(18, 18, 18, 0.98));
}

/* Login polish aligned with inicio */
body.auth-page--login {
  --login-control-bg: rgba(255, 255, 255, 0.74);
  --login-control-bg-hover: rgba(255, 255, 255, 0.92);
  --login-control-border: rgba(16, 58, 87, 0.12);
  --login-control-border-strong: rgba(16, 58, 87, 0.2);
  --login-control-text: #103a57;
  --login-control-icon-bg: rgba(255, 255, 255, 0.78);
  --login-control-icon-text: #1c5677;
  --login-shell-border: rgba(16, 58, 87, 0.1);
  --login-shell-shadow: 0 26px 80px rgba(16, 27, 38, 0.16);
}

body.auth-page--login .auth-stage {
  padding: clamp(0.9rem, 2vw, 1.5rem);
}

body.auth-page--login .auth-login-shell--solo {
  width: min(540px, 100%);
  min-height: auto;
  height: auto;
  max-height: calc(100dvh - 2rem);
  border-color: var(--login-shell-border);
  box-shadow: var(--login-shell-shadow);
}

body.auth-page--login .auth-login-panel--solo {
  display: block;
  padding: clamp(0.75rem, 1.8vw, 1rem);
}

body.auth-page--login .auth-form-card--solo {
  width: 100%;
  max-width: 100%;
  gap: 1.05rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  border-radius: 1.8rem;
}

body.auth-page--login .auth-login-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.95rem;
}

body.auth-page--login .auth-login-mini-brand {
  min-width: 0;
}

body.auth-page--login .auth-login-brand__copy {
  min-width: 0;
}

body.auth-page--login .auth-login-brand__copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.05em;
}

body.auth-page--login .auth-login-brand__copy small {
  font-size: 0.82rem;
}

body.auth-page--login .auth-login-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

body.auth-page--login .auth-theme-toggle,
body.auth-page--login .auth-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--login-control-border);
  background: var(--login-control-bg);
  color: var(--login-control-text);
  box-shadow: 0 12px 28px rgba(16, 58, 87, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

body.auth-page--login .auth-back-home {
  padding-right: 0.9rem;
  text-decoration: none;
}

body.auth-page--login .auth-theme-toggle:hover,
body.auth-page--login .auth-theme-toggle:focus-visible,
body.auth-page--login .auth-back-home:hover,
body.auth-page--login .auth-back-home:focus-visible {
  transform: translateY(-1px);
  background: var(--login-control-bg-hover);
  border-color: var(--login-control-border-strong);
  box-shadow: 0 16px 34px rgba(16, 58, 87, 0.12);
}

body.auth-page--login .auth-theme-toggle__icon,
body.auth-page--login .auth-back-home__icon {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--login-control-icon-bg);
  color: var(--login-control-icon-text);
  flex: 0 0 auto;
}

body.auth-page--login .auth-theme-toggle__label,
body.auth-page--login .auth-back-home__label {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

body.auth-page--login .login-form-content {
  display: grid;
  gap: 0.95rem;
}

body.auth-page--login .form-group {
  gap: 0.42rem;
}

body.auth-page--login .submit-btn {
  margin-top: 0.15rem;
}

body.auth-page--login .form-footer--compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: stretch;
}

body.auth-page--login .form-footer--compact .footer-link {
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--login-control-border);
  background: color-mix(in srgb, var(--login-control-bg) 94%, transparent);
  color: var(--login-control-text);
  box-shadow: none;
}

body.auth-page--login .form-footer--compact .footer-link:hover,
body.auth-page--login .form-footer--compact .footer-link:focus-visible {
  background: var(--login-control-bg-hover);
  border-color: var(--login-control-border-strong);
}

html[data-auth-theme="dark"] body.auth-page--login {
  --login-control-bg: rgba(255, 255, 255, 0.045);
  --login-control-bg-hover: rgba(255, 255, 255, 0.085);
  --login-control-border: rgba(249, 249, 249, 0.11);
  --login-control-border-strong: rgba(232, 80, 2, 0.22);
  --login-control-text: #f6f7fb;
  --login-control-icon-bg: rgba(255, 255, 255, 0.08);
  --login-control-icon-text: #f16001;
  --login-shell-border: rgba(249, 249, 249, 0.1);
  --login-shell-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

html[data-auth-theme="light"] body.auth-page--login .auth-login-shell--solo,
html[data-auth-theme="light"] body.auth-page--login .auth-form-card--solo {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72));
}

html[data-auth-theme="dark"] body.auth-page--login .auth-login-shell--solo,
html[data-auth-theme="dark"] body.auth-page--login .auth-form-card--solo {
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.9), rgba(20, 20, 20, 0.72));
}

@media (max-width: 860px) {
  body.auth-page--login .auth-login-shell--solo {
    width: min(500px, 100%);
  }
}

@media (max-width: 620px) {
  body.auth-page--login {
    overflow-y: auto;
  }

  body.auth-page--login .auth-stage {
    min-height: 100dvh;
    padding: 0.9rem 0.75rem 1.25rem;
    align-items: center;
    justify-content: center;
  }

  body.auth-page--login .auth-login-shell--solo {
    width: 100%;
    max-height: none;
    border-radius: 1.95rem;
  }

  body.auth-page--login .auth-login-panel--solo {
    padding: 0.7rem;
  }

  body.auth-page--login .auth-form-card--solo {
    padding: 1rem;
    border-radius: 1.55rem;
  }

  body.auth-page--login .auth-login-topbar {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  body.auth-page--login .auth-login-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.auth-page--login .auth-theme-toggle,
  body.auth-page--login .auth-back-home {
    width: 100%;
    justify-content: center;
  }

  body.auth-page--login .auth-theme-toggle__label,
  body.auth-page--login .auth-back-home__label {
    font-size: 0.84rem;
  }

  body.auth-page--login .auth-panel__header--compact h1 {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  body.auth-page--login .form-footer--compact {
    grid-template-columns: 1fr;
  }
}
