.auth-body {
  background:
    radial-gradient(circle at top, rgba(179, 38, 58, 0.14), transparent 30%),
    linear-gradient(135deg, #060202 0%, #120806 55%, #1a0d0a 100%);
  color: #ffffff;
}

.auth-visual-panel {
  position: relative;
  min-height: 36vh;
  color: #ffffff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.78)),
    url("../img/auth-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(179, 38, 58, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.auth-visual-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  box-sizing: border-box;
  padding: clamp(0.9rem, 2.2vh, 2rem) clamp(1.25rem, 3vw, 3rem);
  gap: clamp(0.65rem, 1.2vh, 1.35rem);
}

.auth-brand-logo {
  padding-top: clamp(0.1rem, 0.45vh, 0.35rem);
  padding-left: clamp(0.1rem, 0.6vw, 0.35rem);
  max-height: clamp(180px, 34vh, 360px);
}

.auth-logo {
  width: clamp(540px, 78vw, 1100px);
  max-width: 100%;
  max-height: clamp(180px, 34vh, 360px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.auth-visual-copy {
  margin-top: 0;
  max-width: 34rem;
}

.auth-brand {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-visual-title {
  margin: 0;
  font-size: clamp(2.7rem, 4.8vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.auth-visual-text {
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.06rem;
  line-height: 1.75;
}

.auth-visual-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.auth-visual-platforms span {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64vh;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(circle at top right, rgba(143, 29, 44, 0.16), transparent 28%),
    linear-gradient(180deg, #0b0503 0%, #120806 55%, #160b08 100%);
}

.auth-form-shell {
  width: 100%;
  max-width: 540px;
}

.auth-surface {
  width: 100%;
  padding: clamp(1.25rem, 2vw, 1.5rem) 0;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.auth-panel-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.language-picker {
  min-width: 150px;
}

.language-picker .form-select {
  min-height: 2.7rem;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.language-picker .form-select:focus {
  border-color: rgba(179, 38, 58, 0.68);
  box-shadow: 0 0 0 0.2rem rgba(179, 38, 58, 0.18);
}

.auth-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.auth-nav__link {
  position: relative;
  padding: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-nav__link:hover,
.auth-nav__link:focus {
  color: #b12b3f;
}

.auth-nav__link.is-active {
  color: #b12b3f;
}

.auth-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #b3263a;
}

.auth-heading {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.auth-subtitle {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.75;
}

.auth-form .form-label {
  color: #ffffff;
  font-weight: 600;
}

.auth-form .form-control,
.auth-form .form-select {
  min-height: 3.45rem;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

.auth-form .form-control::placeholder {
  color: rgba(200, 211, 225, 0.58);
}

.auth-form .form-select {
  color: #ffffff;
}

.auth-form .form-select option {
  color: #ffffff;
  background: #211411;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
  border-color: rgba(179, 38, 58, 0.7);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 0.22rem rgba(179, 38, 58, 0.18);
  color: #ffffff;
}

.auth-form .form-control.is-invalid,
.auth-form .form-select.is-invalid {
  border-color: rgba(179, 38, 58, 0.82);
}

.auth-form .invalid-feedback {
  color: #f2b2ba;
}

.auth-terms {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.72);
}

.auth-terms .form-check-input {
  margin-top: 0.28rem;
  border-color: rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.08);
}

.auth-terms .form-check-input:checked {
  background-color: #8f1d2c;
  border-color: #8f1d2c;
}

.auth-terms a {
  color: #ffffff;
}

.auth-terms a:hover,
.auth-terms a:focus {
  color: #b12b3f;
}

.auth-terms__link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
}

.auth-terms__link:hover,
.auth-terms__link:focus {
  color: #b12b3f;
}

.btn-burgundy {
  background: #8f1d2c;
  border-color: #8f1d2c;
  color: #ffffff;
}

.btn-burgundy:hover,
.btn-burgundy:focus {
  background: #a32638;
  border-color: #a32638;
  color: #ffffff;
}

.btn-burgundy:active {
  background: #b12b3f;
  border-color: #b12b3f;
  color: #ffffff;
}

.btn-burgundy:focus {
  box-shadow: 0 0 0 0.22rem rgba(179, 38, 58, 0.24);
}

.auth-submit {
  min-height: 3.45rem;
  border-radius: 999px;
  font-weight: 700;
}

.auth-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-links p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.auth-links p + p {
  margin-top: 0.65rem;
}

.auth-links a {
  color: #ffffff;
  text-decoration: none;
}

.auth-links a:hover,
.auth-links a:focus {
  color: #b12b3f;
}

.legal-modal .modal-content {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at top right, rgba(143, 29, 44, 0.16), transparent 28%),
    linear-gradient(180deg, #0b0503 0%, #120806 55%, #160b08 100%);
  color: #ffffff;
}

.legal-modal .modal-header,
.legal-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.legal-modal__eyebrow {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-modal__version {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.legal-modal__content {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.85;
  white-space: normal;
}

@media (min-width: 992px) {
  .auth-visual-panel,
  .auth-form-panel {
    min-height: 100svh;
  }

  .auth-visual-shell {
    max-height: 100svh;
    overflow: hidden;
  }
}

@media (max-width: 991.98px) {
  .auth-visual-panel {
    min-height: 44vh;
  }

  .auth-visual-copy {
    margin-top: 0;
  }

  .auth-form-panel {
    min-height: auto;
  }

  .auth-form-shell {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .auth-visual-panel {
    min-height: 32vh;
  }

  .auth-logo {
    width: clamp(360px, 90vw, 640px);
    max-width: 100%;
  }

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

  .language-picker {
    width: 100%;
  }

  .language-picker .form-select {
    width: 100%;
  }

  .auth-nav {
    gap: 1rem;
  }
}
