:root {
  --auth-navy: #061a35;
  --auth-navy-soft: #0b274d;
  --auth-blue: #1769f5;
  --auth-blue-strong: #0d55d8;
  --auth-yellow: #f2c230;
  --auth-surface: #ffffff;
  --auth-surface-soft: #f5f8fc;
  --auth-ink: #071a35;
  --auth-muted: #64748b;
  --auth-line: #d9e2ee;
  --auth-shadow: 0 1.5rem 4rem rgba(7, 26, 53, 0.16);
}

.auth-journey-page {
  overflow-x: hidden;
  background: var(--auth-surface-soft);
}

.auth-journey-page .app-navbar {
  margin-bottom: 0 !important;
  border-bottom-color: rgba(148, 163, 184, 0.22);
}

.auth-journey-page .app-shell,
.auth-journey-page .app-shell > main {
  width: 100%;
  min-width: 0;
}

.auth-journey-page .app-footer {
  margin-top: 0;
}

.auth-journey {
  position: relative;
  min-width: 0;
  padding: 1.25rem;
  color: var(--auth-ink);
  background:
    linear-gradient(135deg, rgba(23, 105, 245, 0.035), transparent 42%),
    var(--auth-surface-soft);
  isolation: isolate;
}

.auth-journey::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.46;
  pointer-events: none;
  background-image:
    linear-gradient(116deg, transparent 0 31%, rgba(23, 105, 245, 0.07) 31.1% 31.22%, transparent 31.32% 100%),
    linear-gradient(116deg, transparent 0 72%, rgba(242, 194, 48, 0.08) 72.1% 72.22%, transparent 72.32% 100%);
}

.auth-journey-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(30rem, 0.92fr);
  width: min(100%, 92rem);
  min-height: calc(100dvh - 8.5rem);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: var(--auth-surface);
  box-shadow: var(--auth-shadow);
}

.auth-visual {
  position: relative;
  min-width: 0;
  min-height: 46rem;
  overflow: hidden;
  color: #ffffff;
  background: var(--auth-navy);
  animation: auth-panel-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-visual-image,
.auth-visual-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-visual-image {
  z-index: 0;
  object-fit: cover;
  object-position: 60% center;
  transform: scale(1.01);
}

.auth-visual-register .auth-visual-image {
  object-position: 66% center;
}

.auth-visual-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 16, 35, 0.97) 0%, rgba(3, 16, 35, 0.86) 42%, rgba(3, 16, 35, 0.42) 100%),
    linear-gradient(0deg, rgba(3, 16, 35, 0.86) 0%, transparent 48%, rgba(3, 16, 35, 0.28) 100%);
}

.auth-route-line {
  position: absolute;
  z-index: 2;
  right: -3rem;
  bottom: 21%;
  width: 56%;
  height: 5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  opacity: 0.72;
  transform: rotate(-8deg);
}

.auth-route-line::after {
  position: absolute;
  top: -0.38rem;
  left: 58%;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  content: "";
  background: var(--auth-blue);
  box-shadow: 0 0 0 0.3rem rgba(23, 105, 245, 0.28);
}

.auth-route-line span {
  position: absolute;
  top: 0.8rem;
  left: 18%;
  width: 3.5rem;
  border-top: 2px dashed rgba(242, 194, 48, 0.72);
}

.auth-visual-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2.25rem clamp(2rem, 4vw, 4.75rem);
}

.auth-visual-brand,
.auth-form-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.auth-visual-brand:hover,
.auth-visual-brand:focus-visible {
  color: #ffffff;
}

.auth-visual-brand:focus-visible,
.auth-form-brand:focus-visible {
  outline: 3px solid rgba(242, 194, 48, 0.78);
  outline-offset: 0.3rem;
}

.auth-visual-brand .cds-theme-logo {
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.auth-visual-brand strong,
.auth-visual-brand small,
.auth-form-brand strong,
.auth-form-brand small {
  display: block;
  letter-spacing: 0;
}

.auth-visual-brand strong {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.auth-visual-brand small {
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-visual-copy {
  width: min(100%, 38rem);
  margin: auto 0;
  padding-block: 3rem;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--auth-blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-eyebrow::before {
  width: 1.65rem;
  height: 2px;
  content: "";
  background: var(--auth-yellow);
}

.auth-eyebrow-light {
  color: rgba(255, 255, 255, 0.88);
}

.auth-visual-copy h1 {
  max-width: 37rem;
  margin: 1rem 0 1.15rem;
  color: #ffffff;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-visual-copy > p {
  max-width: 35rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.75;
}

.auth-benefits,
.auth-visual-steps {
  display: grid;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

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

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  padding: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(7, 26, 53, 0.4);
  backdrop-filter: blur(8px);
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  color: var(--auth-yellow);
  background: rgba(255, 255, 255, 0.09);
}

.auth-benefit-icon svg,
.auth-control-icon svg,
.auth-primary-button svg,
.auth-progress-dot svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-benefit-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-visual-caption {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-visual-caption > span {
  width: 0.52rem;
  height: 0.52rem;
  border: 2px solid #76a7ff;
  border-radius: 50%;
  box-shadow: 0 0 0 0.22rem rgba(23, 105, 245, 0.25);
}

.auth-visual-steps {
  gap: 0.72rem;
  width: min(100%, 31rem);
}

.auth-visual-steps li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.45rem 0 0.45rem 1rem;
}

.auth-visual-steps li > span {
  color: var(--auth-yellow);
  font-size: 0.72rem;
  font-weight: 900;
}

.auth-visual-steps strong,
.auth-visual-steps small {
  display: block;
}

.auth-visual-steps strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.auth-visual-steps small {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
}

.auth-form-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 3rem clamp(2rem, 4vw, 4.5rem);
  overflow: hidden;
  background: var(--auth-surface);
}

.auth-form-panel::before,
.auth-form-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.auth-form-panel::before {
  top: -7rem;
  right: -9rem;
  width: 27rem;
  height: 13rem;
  border-bottom: 1px solid rgba(23, 105, 245, 0.12);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.auth-form-panel::after {
  right: 0;
  bottom: 0;
  width: 36%;
  height: 0.22rem;
  background: linear-gradient(90deg, transparent, var(--auth-yellow));
}

.auth-form-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 31rem);
  animation: auth-form-in 0.38s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-form-wrap-register {
  width: min(100%, 34rem);
  padding-block: 1rem;
}

.auth-form-brand {
  margin-bottom: 2.15rem;
  color: var(--auth-ink);
}

.auth-form-brand .cds-theme-logo {
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.auth-form-brand strong {
  color: var(--auth-ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
}

.auth-form-brand small {
  margin-top: 0.15rem;
  color: var(--auth-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-form-header {
  margin-bottom: 2rem;
}

.auth-form-header h2 {
  margin: 0.7rem 0 0.55rem;
  color: var(--auth-ink);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.auth-form-header p {
  max-width: 29rem;
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.auth-validation-summary {
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 6px;
  margin-bottom: 1rem;
  padding: 0.78rem 0.9rem;
  color: #b91c1c !important;
  background: rgba(254, 226, 226, 0.72);
  font-size: 0.82rem;
}

.auth-validation-summary:empty,
.auth-validation-summary.validation-summary-valid {
  display: none;
}

.auth-validation-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.auth-field {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  margin-bottom: 1.05rem;
}

.auth-label {
  color: var(--auth-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-control-wrap {
  position: relative;
  min-width: 0;
}

.auth-control-icon {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  color: #75849a;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 0.18s ease;
}

.auth-control-icon svg {
  width: 100%;
  height: 100%;
}

.auth-control-wrap:focus-within .auth-control-icon {
  color: var(--auth-blue);
}

.auth-control.form-control,
.auth-control.form-select {
  width: 100%;
  min-height: 3.55rem;
  border: 1px solid var(--auth-line);
  border-radius: 6px;
  padding: 0.78rem 3.25rem 0.78rem 3rem;
  color: var(--auth-ink);
  background-color: var(--auth-surface);
  box-shadow: 0 0.25rem 0.7rem rgba(7, 26, 53, 0.035);
  font-size: 0.93rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-control.form-select {
  padding-right: 2.75rem;
}

.auth-control.form-control::placeholder {
  color: #98a4b5;
  opacity: 1;
}

.auth-control.form-control:hover,
.auth-control.form-select:hover {
  border-color: #b8c6d8;
}

.auth-control.form-control:focus,
.auth-control.form-select:focus {
  border-color: var(--auth-blue);
  outline: 0;
  background-color: var(--auth-surface);
  box-shadow: 0 0 0 0.22rem rgba(23, 105, 245, 0.13);
}

.auth-control.input-validation-error,
.auth-control.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 0.18rem rgba(220, 38, 38, 0.09);
}

.auth-field-error {
  min-height: 1rem;
  color: #b91c1c !important;
  font-size: 0.76rem;
  line-height: 1.35;
}

.auth-field-error:empty,
.auth-field-error.field-validation-valid {
  min-height: 0;
}

.auth-field-help {
  color: var(--auth-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.auth-control-wrap.password-toggle-field .password-toggle-input {
  padding-right: 3.9rem;
}

.auth-control-wrap.password-toggle-field .password-toggle-btn {
  top: 50%;
  right: 0.18rem;
  width: 3.4rem;
  height: 3.4rem;
  border-color: transparent;
  color: #64748b;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
}

.auth-control-wrap.password-toggle-field .password-toggle-btn:hover,
.auth-control-wrap.password-toggle-field .password-toggle-btn:focus {
  color: var(--auth-blue);
  border-color: rgba(23, 105, 245, 0.15);
  background: rgba(23, 105, 245, 0.07);
}

.auth-control-wrap.password-toggle-field .password-toggle-btn:focus-visible {
  outline: 3px solid rgba(23, 105, 245, 0.24);
  outline-offset: 0.1rem;
}

.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0 1.3rem;
}

.auth-remember {
  display: flex;
  align-items: center;
  min-height: 3.4rem;
  margin: 0;
}

.auth-remember .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  border-color: #aab8cb;
}

.auth-remember .form-check-input:checked {
  border-color: var(--auth-blue);
  background-color: var(--auth-blue);
}

.auth-remember .form-check-input:focus-visible {
  outline: 3px solid rgba(23, 105, 245, 0.22);
  outline-offset: 0.12rem;
  box-shadow: none;
}

.auth-remember .form-check-label,
.auth-inline-link,
.auth-switch-prompt,
.auth-secondary-links {
  font-size: 0.82rem;
}

.auth-remember .form-check-label {
  display: inline-flex;
  align-items: center;
  min-height: 3.4rem;
  padding-left: 0.15rem;
  color: var(--auth-muted) !important;
}

.auth-inline-link,
.auth-switch-prompt a,
.auth-secondary-links a {
  color: var(--auth-blue);
  font-weight: 800;
  text-decoration: none;
}

.auth-inline-link:hover,
.auth-switch-prompt a:hover,
.auth-secondary-links a:hover {
  color: var(--auth-blue-strong);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.auth-inline-link:focus-visible,
.auth-switch-prompt a:focus-visible,
.auth-secondary-links a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(23, 105, 245, 0.22);
  outline-offset: 0.16rem;
}

.auth-primary-button {
  --auth-magnet-x: 0px;
  --auth-magnet-y: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.5rem;
  border: 1px solid var(--auth-blue);
  border-radius: 6px;
  padding: 0.8rem 1.15rem;
  color: #ffffff;
  background: linear-gradient(100deg, var(--auth-blue-strong), var(--auth-blue));
  box-shadow: 0 0.9rem 1.7rem rgba(23, 105, 245, 0.22);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  transform: translate(var(--auth-magnet-x), var(--auth-magnet-y));
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-primary-button svg {
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-primary-button:hover:not(:disabled) {
  color: #ffffff;
  box-shadow: 0 1.05rem 2rem rgba(23, 105, 245, 0.3);
  filter: saturate(1.06);
}

.auth-primary-button:hover:not(:disabled) svg {
  transform: translateX(0.22rem);
}

.auth-primary-button:active:not(:disabled) {
  transform: translate(var(--auth-magnet-x), calc(var(--auth-magnet-y) + 1px)) scale(0.992);
}

.auth-primary-button:focus-visible {
  outline: 3px solid rgba(23, 105, 245, 0.28);
  outline-offset: 0.22rem;
}

.auth-primary-button:disabled,
.auth-primary-button.is-submitting {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.auth-primary-button.is-submitting svg {
  animation: auth-submit-pulse 0.8s ease-in-out infinite alternate;
}

.auth-switch-prompt {
  margin: 1.25rem 0 0;
  color: var(--auth-muted);
  text-align: center;
}

.auth-secondary-links {
  margin-top: 0.75rem;
  text-align: center;
}

.auth-external {
  margin-top: 1.45rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
  color: var(--auth-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1 1 auto;
  height: 1px;
  content: "";
  background: var(--auth-line);
}

.auth-external-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.auth-external-button {
  flex: 1 1 10rem;
  min-height: 2.9rem;
  border: 1px solid var(--auth-line);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  color: var(--auth-ink);
  background: var(--auth-surface);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-external-button:hover,
.auth-external-button:focus-visible {
  border-color: var(--auth-blue);
  outline: 0;
  color: var(--auth-blue);
  box-shadow: 0 0 0 0.2rem rgba(23, 105, 245, 0.1);
}

.auth-form-note {
  margin: 1.5rem 0 0;
  color: #8793a5;
  font-size: 0.7rem;
  text-align: center;
}

.auth-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: min(100%, 26rem);
  margin: 0 0 1.6rem;
}

.auth-progress-line {
  position: absolute;
  top: 1rem;
  right: 2rem;
  left: 2rem;
  height: 1px;
  background: var(--auth-line);
}

.auth-progress-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-width: 4.5rem;
  color: #8793a5;
}

.auth-progress-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--auth-line);
  border-radius: 50%;
  color: #7c899b;
  background: var(--auth-surface);
  font-size: 0.72rem;
  font-weight: 900;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-progress-dot svg {
  display: none;
  width: 1rem;
  height: 1rem;
}

.auth-progress-step small {
  color: inherit;
  font-size: 0.68rem;
  font-weight: 800;
}

.auth-progress-step.is-current {
  color: var(--auth-blue);
}

.auth-progress-step.is-current .auth-progress-dot {
  border-color: var(--auth-blue);
  color: #ffffff;
  background: var(--auth-blue);
  box-shadow: 0 0 0 0.25rem rgba(23, 105, 245, 0.12);
}

.auth-progress-step.is-complete {
  color: var(--auth-blue-strong);
}

.auth-progress-step.is-complete .auth-progress-dot {
  border-color: var(--auth-blue);
  color: #ffffff;
  background: var(--auth-blue);
}

.auth-progress-step.is-complete .auth-progress-dot > span {
  display: none;
}

.auth-progress-step.is-complete .auth-progress-dot svg {
  display: block;
}

.auth-field-group {
  border-top: 1px solid var(--auth-line);
  padding-top: 1rem;
}

.auth-field-group + .auth-field-group {
  margin-top: 0.4rem;
}

.auth-group-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  margin-bottom: 0.9rem;
}

.auth-group-heading > span {
  color: var(--auth-blue);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.35rem;
}

.auth-group-heading strong,
.auth-group-heading small {
  display: block;
}

.auth-group-heading strong {
  color: var(--auth-ink);
  font-size: 0.88rem;
}

.auth-group-heading small {
  margin-top: 0.1rem;
  color: var(--auth-muted);
  font-size: 0.7rem;
}

.auth-password-rules {
  border: 1px solid var(--auth-line);
  border-radius: 6px;
  margin: -0.15rem 0 1rem;
  padding: 0.75rem;
  background: var(--auth-surface-soft);
}

.auth-password-rules p {
  margin: 0 0 0.55rem;
  color: var(--auth-ink);
  font-size: 0.72rem;
  font-weight: 850;
}

.auth-password-rules ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-password-rules li {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--auth-muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.auth-password-rules li > span {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid #9aa8b9;
  border-radius: 50%;
  background: transparent;
}

.auth-password-rules li.is-met {
  color: #0f766e;
}

.auth-password-rules li.is-met > span {
  border-color: #0f766e;
  background: #0f766e;
  box-shadow: inset 0 0 0 2px var(--auth-surface-soft);
}

.auth-journey .form-control:-webkit-autofill,
.auth-journey .form-control:-webkit-autofill:hover,
.auth-journey .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-ink);
  box-shadow: 0 0 0 1000px var(--auth-surface) inset, 0 0 0 0.22rem rgba(23, 105, 245, 0.1);
  caret-color: var(--auth-ink);
  transition: background-color 9999s ease-out 0s;
}

[data-theme="dark"] {
  --auth-surface: #111b2b;
  --auth-surface-soft: #0b1422;
  --auth-ink: #eef4ff;
  --auth-muted: #a7b3c5;
  --auth-line: #314056;
  --auth-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.36);
}

[data-theme="dark"] .auth-journey-page,
[data-theme="dark"] .auth-journey {
  background-color: var(--auth-surface-soft);
}

[data-theme="dark"] .auth-journey-shell,
[data-theme="dark"] .auth-form-panel,
[data-theme="dark"] .auth-control.form-control,
[data-theme="dark"] .auth-control.form-select,
[data-theme="dark"] .auth-external-button,
[data-theme="dark"] .auth-progress-dot {
  background-color: var(--auth-surface);
}

[data-theme="dark"] .auth-form-brand .cds-theme-logo,
[data-theme="dark"] .auth-visual-brand .cds-theme-logo {
  border: 0;
  background: transparent;
}

[data-theme="dark"] .auth-validation-summary {
  color: #fecaca !important;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.3);
}

[data-theme="dark"] .auth-field-error {
  color: #fca5a5 !important;
}

[data-theme="dark"] .auth-control.form-control,
[data-theme="dark"] .auth-control.form-select {
  color: var(--auth-ink);
  border-color: var(--auth-line);
}

[data-theme="dark"] .auth-control.form-control:focus,
[data-theme="dark"] .auth-control.form-select:focus {
  background-color: #152235;
}

[data-theme="dark"] .auth-control.form-control::placeholder {
  color: #77869a;
}

[data-theme="dark"] .auth-password-rules {
  background: #0d1828;
}

[data-theme="dark"] .auth-password-rules li.is-met > span {
  box-shadow: inset 0 0 0 2px #0d1828;
}

[data-theme="dark"] .auth-journey .form-control:-webkit-autofill,
[data-theme="dark"] .auth-journey .form-control:-webkit-autofill:hover,
[data-theme="dark"] .auth-journey .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-ink);
  box-shadow: 0 0 0 1000px #152235 inset, 0 0 0 0.22rem rgba(93, 145, 255, 0.13);
  caret-color: var(--auth-ink);
}

@keyframes auth-panel-in {
  from { opacity: 0; transform: scale(0.992); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes auth-form-in {
  from { opacity: 0; transform: translateY(0.7rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-submit-pulse {
  from { transform: translateX(0); }
  to { transform: translateX(0.2rem); }
}

@media (max-width: 1199.98px) {
  .auth-journey-shell {
    grid-template-columns: minmax(0, 0.92fr) minmax(29rem, 1.08fr);
  }

  .auth-visual-copy h1 {
    font-size: 3.1rem;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
    width: min(100%, 22rem);
  }

  .auth-form-panel {
    padding-inline: 2.5rem;
  }
}

@media (max-width: 899.98px) {
  .auth-journey {
    padding: 0.85rem;
  }

  .auth-journey-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-visual {
    min-height: 23rem;
  }

  .auth-visual-content {
    min-height: 23rem;
    padding: 1.5rem 2rem;
  }

  .auth-visual-copy {
    width: min(100%, 35rem);
    margin: auto 0 0;
    padding: 2rem 0 1.4rem;
  }

  .auth-visual-copy h1 {
    max-width: 30rem;
    margin-block: 0.7rem;
    font-size: 2.65rem;
  }

  .auth-visual-copy > p {
    max-width: 31rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .auth-benefits,
  .auth-visual-steps,
  .auth-visual-caption {
    display: none;
  }

  .auth-route-line {
    right: -1rem;
    bottom: 16%;
    width: 48%;
  }

  .auth-form-panel {
    padding: 2.5rem 2rem 3rem;
  }

  .auth-form-wrap,
  .auth-form-wrap-register {
    width: min(100%, 36rem);
  }
}

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

  .auth-journey-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-visual,
  .auth-visual-content {
    min-height: 18.5rem;
  }

  .auth-visual-content {
    padding: 1.15rem 1.25rem;
  }

  .auth-visual-image {
    object-position: 63% center;
  }

  .auth-visual-overlay {
    background:
      linear-gradient(90deg, rgba(3, 16, 35, 0.94), rgba(3, 16, 35, 0.52)),
      linear-gradient(0deg, rgba(3, 16, 35, 0.92), transparent 70%);
  }

  .auth-visual-brand .cds-theme-logo--auth {
    --cds-logo-size: 2.3rem;
  }

  .auth-visual-brand small {
    display: none;
  }

  .auth-visual-copy {
    padding: 1rem 0 0.5rem;
  }

  .auth-visual-copy h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .auth-visual-copy > p {
    font-size: 0.82rem;
  }

  .auth-eyebrow {
    font-size: 0.66rem;
  }

  .auth-form-panel {
    align-items: flex-start;
    padding: 1.65rem 1.15rem 2.5rem;
  }

  .auth-form-brand {
    margin-bottom: 1.35rem;
  }

  .auth-form-header {
    margin-bottom: 1.45rem;
  }

  .auth-form-header h2 {
    font-size: 1.75rem;
  }

  .auth-form-options {
    align-items: flex-start;
  }

  .auth-primary-button,
  .auth-control.form-control,
  .auth-control.form-select {
    min-height: 3.25rem;
  }

  .auth-password-rules ul {
    grid-template-columns: 1fr;
  }

  .auth-progress {
    width: 100%;
  }

  .auth-progress-step {
    min-width: 3.7rem;
  }

  .auth-group-heading small {
    display: none;
  }
}

@media (max-width: 359.98px) {
  .auth-form-panel {
    padding-inline: 0.9rem;
  }

  .auth-form-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .auth-progress-step small {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual,
  .auth-form-wrap,
  .auth-primary-button,
  .auth-primary-button svg,
  .auth-control,
  .auth-progress-dot,
  .auth-control-icon {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Enter the Road: CDS-specific authentication scene. */
.auth-journey {
  padding: clamp(1rem, 2.2vw, 2rem);
  background:
    linear-gradient(145deg, rgba(23, 105, 245, 0.055), transparent 44%),
    var(--auth-surface-soft);
}

.auth-journey-shell {
  grid-template-columns: minmax(0, 1.14fr) minmax(29rem, 0.86fr);
  gap: 1rem;
  padding: 1rem;
  border-color: rgba(115, 143, 180, 0.34);
  background: #04162f;
  box-shadow: 0 1.8rem 5rem rgba(3, 18, 39, 0.19);
}

.auth-visual {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  isolation: isolate;
}

.auth-visual-image {
  filter: brightness(1.03) saturate(0.93) contrast(1.03);
  animation: auth-road-breathe 16s ease-in-out infinite alternate;
}

.auth-visual-overlay {
  background:
    linear-gradient(90deg, rgba(3, 16, 35, 0.95) 0%, rgba(3, 16, 35, 0.79) 42%, rgba(3, 16, 35, 0.24) 100%),
    linear-gradient(0deg, rgba(3, 16, 35, 0.84) 0%, transparent 50%, rgba(35, 88, 147, 0.2) 100%);
  transition: background 0.3s ease;
}

.auth-scene-stars,
.auth-headlight-reflection {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.auth-scene-stars {
  inset: 0 0 47% 45%;
  opacity: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.4px),
    radial-gradient(circle at 38% 31%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.4px),
    radial-gradient(circle at 61% 13%, rgba(255, 255, 255, 0.64) 0 1px, transparent 1.4px),
    radial-gradient(circle at 84% 38%, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.4px),
    radial-gradient(circle at 72% 66%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.4px);
  transition: opacity 0.3s ease;
}

.auth-headlight-reflection {
  right: 2%;
  bottom: 10%;
  width: 48%;
  height: 9%;
  opacity: 0.24;
  background: linear-gradient(96deg, transparent, rgba(218, 234, 255, 0.38), transparent 72%);
  filter: blur(7px);
  transform: skewX(-18deg);
  transition: opacity 0.3s ease;
}

.auth-route-line {
  width: 62%;
  opacity: 0.8;
}

.auth-route-line span {
  animation: auth-road-dashes 7s linear infinite;
}

.auth-route-vehicle {
  position: absolute;
  top: -1.18rem;
  left: 52%;
  width: 2.25rem;
  height: 1.15rem;
  color: #ffffff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0.3rem 0.42rem rgba(0, 0, 0, 0.3));
  animation: auth-route-idle 4.5s ease-in-out infinite;
}

.auth-form-panel {
  align-self: stretch;
  margin: 0.85rem 0.85rem 0.85rem 0;
  border: 1px solid rgba(184, 201, 221, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.975);
  box-shadow: 0 1.2rem 3.2rem rgba(1, 15, 34, 0.28);
  backdrop-filter: blur(8px);
}

.auth-form-wrap {
  --auth-tilt-x: 0deg;
  --auth-tilt-y: 0deg;
  transform: perspective(1200px) rotateX(var(--auth-tilt-x)) rotateY(var(--auth-tilt-y));
  transform-origin: 50% 50%;
  animation: auth-form-road-in 0.34s 0.04s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-field .auth-label {
  transform: translateY(0);
  transform-origin: left bottom;
  transition: color 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-field.is-focused .auth-label {
  color: var(--auth-blue);
  transform: translateY(-0.15rem);
}

.auth-field.is-valid-field .auth-control-wrap::after {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 1.05rem;
  width: 0.42rem;
  height: 0.72rem;
  border-right: 2px solid #12824c;
  border-bottom: 2px solid #12824c;
  content: "";
  pointer-events: none;
  transform: translateY(-58%) rotate(45deg) scale(1);
  animation: auth-check-in 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-field.is-valid-field .password-toggle-field::after {
  right: 3.85rem;
}

.auth-field.is-valid-field .auth-select-wrap::after {
  right: 2.9rem;
}

.auth-field-error:not(:empty),
.auth-field-error.field-validation-error {
  animation: auth-error-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-field-shake,
.auth-field:has(.input-validation-error) {
  animation: auth-error-shake 0.26s ease both;
}

.auth-submit-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.is-routing .auth-route-vehicle {
  animation: auth-route-resume 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.is-routing .auth-route-line span {
  animation-duration: 0.36s;
}

.auth-progress {
  --auth-progress-value: 0%;
}

.auth-progress-vehicle {
  position: absolute;
  z-index: 4;
  top: -0.2rem;
  left: clamp(0.85rem, var(--auth-progress-value), calc(100% - 2.45rem));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 1.4rem;
  color: var(--auth-blue);
  background: var(--auth-surface);
  transition: left 0.34s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease;
}

.auth-progress-vehicle svg {
  width: 1.75rem;
  height: 0.92rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="dark"] .auth-visual-image {
  filter: brightness(0.68) saturate(0.82) contrast(1.09);
}

[data-theme="dark"] .auth-visual-overlay {
  background:
    linear-gradient(90deg, rgba(2, 12, 28, 0.98) 0%, rgba(2, 12, 28, 0.86) 42%, rgba(2, 12, 28, 0.36) 100%),
    linear-gradient(0deg, rgba(1, 10, 24, 0.92) 0%, transparent 48%, rgba(1, 10, 24, 0.45) 100%);
}

[data-theme="dark"] .auth-scene-stars {
  opacity: 0.62;
}

[data-theme="dark"] .auth-headlight-reflection {
  opacity: 0.75;
}

[data-theme="dark"] .auth-form-panel {
  border-color: rgba(82, 111, 149, 0.5);
  background: rgba(17, 27, 43, 0.975);
}

[data-theme="dark"] .auth-progress-vehicle {
  color: #7fb0ff;
  background: #111b2b;
}

@keyframes auth-road-breathe {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(-0.35%, -0.2%, 0); }
}

@keyframes auth-road-dashes {
  0% { transform: translateX(-0.45rem); opacity: 0.55; }
  50% { opacity: 0.95; }
  100% { transform: translateX(0.45rem); opacity: 0.55; }
}

@keyframes auth-route-idle {
  0%, 100% { transform: translateX(-0.12rem); }
  50% { transform: translateX(0.22rem); }
}

@keyframes auth-route-resume {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(6.5rem); opacity: 0.25; }
}

@keyframes auth-form-road-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes auth-check-in {
  from { opacity: 0; transform: translateY(-58%) rotate(45deg) scale(0.55); }
  to { opacity: 1; transform: translateY(-58%) rotate(45deg) scale(1); }
}

@keyframes auth-error-in {
  from { opacity: 0; transform: translateY(-0.2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-error-shake {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-0.18rem); }
  70% { transform: translateX(0.14rem); }
}

@media (max-width: 899.98px) {
  .auth-journey-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background: var(--auth-surface);
  }

  .auth-visual {
    border: 0;
    border-radius: 0;
  }

  .auth-form-panel {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .auth-form-wrap {
    transform: none;
  }
}

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

  .auth-route-vehicle {
    width: 1.85rem;
  }

  .auth-headlight-reflection {
    bottom: 7%;
    width: 58%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual-image,
  .auth-route-line span,
  .auth-route-vehicle,
  .auth-form-wrap,
  .auth-field,
  .auth-field-error,
  .auth-field .auth-label,
  .auth-progress-vehicle,
  .auth-field.is-valid-field .auth-control-wrap::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
