body.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, rgba(185, 130, 31, 0.16), transparent 34%),
    linear-gradient(180deg, #f2f4f5 0%, #fbfaf7 100%);
}

body.auth-page .main {
  min-height: 100vh;
  padding-top: 0;
}

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

.auth-entry.section {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 0;
}

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

.auth-form-panel {
  overflow: hidden;
  width: 100%;
  padding: 0 44px 36px;
  border: 1px solid rgba(16, 38, 59, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(12, 28, 43, 0.12);
}

.auth-card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 214px;
  margin: 0 -44px 26px;
  padding: 18px 28px;
  background:
    radial-gradient(circle at 62% 42%, rgba(185, 130, 31, 0.24), transparent 26%),
    radial-gradient(circle at 38% 54%, rgba(46, 113, 152, 0.24), transparent 30%),
    linear-gradient(135deg, #04182a 0%, #082f51 58%, #17384e 100%);
}

.auth-card-brand img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.auth-card-brand picture {
  display: block;
  width: min(360px, 100%);
  height: auto;
  overflow: hidden;
  background: transparent;
}

.auth-card-heading {
  margin-bottom: 22px;
  text-align: center;
}

.auth-card-heading p {
  margin: 0 0 6px;
  color: #7a520e;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-card-heading h1 {
  margin: 0;
  color: #08233e;
  font-family: var(--heading-font);
  font-size: 2rem;
  line-height: 1.1;
}

.auth-alert {
  margin: 0 0 18px;
  border-radius: 12px;
}

.auth-divider {
  position: relative;
  margin: 0 0 18px;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(16, 38, 59, 0.1);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: #ffffff;
  color: #536170;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-form .form-control {
  height: 56px;
  border: 1px solid rgba(16, 38, 59, 0.14);
  border-radius: 12px;
  color: #08233e;
  box-shadow: none;
}

.auth-form .form-control:focus {
  border-color: rgba(185, 130, 31, 0.52);
  box-shadow: 0 0 0 0.22rem rgba(185, 130, 31, 0.11);
}

.auth-form .form-floating > label {
  color: #536170;
}

.auth-form .form-floating > label::after {
  background: #ffffff;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #536170;
  font-size: 0.92rem;
}

.auth-remember .form-check-input {
  margin: 0;
}

.auth-submit-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(235, 207, 148, 0.38);
  border-radius: 12px;
  background: linear-gradient(120deg, #082f51, #1c638d);
  font-size: 0.96rem;
  font-weight: 900;
}

.auth-submit-button:hover {
  filter: brightness(1.03);
}

.auth-support-note {
  margin: 18px 0 0;
  color: #536170;
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
}

/* The login has enough room to use the DUOVIA demo reel as its visual. */
.auth-page--login .auth-entry.section {
  padding: clamp(24px, 4vw, 52px) 0;
}

.auth-login-stage {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.auth-public-back {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 9px;
  margin: 18px auto 0;
  padding: 11px 18px;
  color: #17384e;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(16, 38, 59, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(12, 28, 43, 0.09);
  backdrop-filter: blur(10px);
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.auth-public-back span {
  display: grid;
  width: 24px;
  height: 24px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a5b0c, #bd8723);
}

.auth-public-back:hover,
.auth-public-back:focus-visible {
  color: #7a520e;
  border-color: rgba(154, 104, 18, 0.3);
  box-shadow: 0 14px 34px rgba(12, 28, 43, 0.13);
  transform: translateY(-2px);
}

.auth-shell--login {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 59, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(12, 28, 43, 0.14);
}

.auth-login-brand {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #04182a;
  border-right: 1px solid rgba(185, 130, 31, 0.24);
}

.auth-login-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-login-form {
  align-self: center;
  overflow: visible;
  padding: 54px 48px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-login-form .auth-card-heading {
  margin-bottom: 30px;
  text-align: left;
}

.auth-login-form .auth-card-heading p {
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

.auth-login-form .auth-card-heading h1 {
  font-size: clamp(2rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.auth-card-lead {
  display: block;
  max-width: 34ch;
  margin-top: 13px;
  color: #536170;
  font-size: 0.96rem;
  line-height: 1.55;
}

.auth-login-form .auth-submit-button {
  background: linear-gradient(120deg, #8a5b0c, #bd8723);
  box-shadow: 0 12px 26px rgba(139, 96, 18, 0.18);
}

.auth-login-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(16, 38, 59, 0.09);
}

.auth-login-links .auth-support-note {
  margin-top: 0;
}

.auth-login-links .auth-support-note + .auth-support-note {
  margin-top: 10px;
}

.auth-login-links a {
  color: #8a5b0c;
  font-weight: 800;
  text-underline-offset: 3px;
}

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

  .auth-login-brand {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid rgba(139, 96, 18, 0.16);
  }

  .auth-login-form {
    padding: 40px 44px 44px;
  }
}

@media (max-width: 575px) {
  .auth-entry.section {
    align-items: start;
    padding: 18px 0;
  }

  .auth-form-panel {
    padding: 0 20px 28px;
    border-radius: 16px;
  }

  .auth-card-brand {
    min-height: 172px;
    margin: 0 -20px 22px;
    padding: 14px 18px;
  }

  .auth-card-brand img {
    width: 100%;
  }

  .auth-card-brand picture {
    width: min(300px, 100%);
    height: auto;
  }

  .auth-card-heading h1 {
    font-size: 1.72rem;
  }

  .auth-shell--login {
    border-radius: 18px;
  }

  .auth-login-brand {
    min-height: 252px;
  }

  .auth-login-form {
    padding: 32px 22px 30px;
  }

  .auth-login-form .auth-card-heading {
    margin-bottom: 24px;
  }
}
.auth-language-switcher {
  position: fixed;
  z-index: 20;
  top: 18px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  background: rgba(5, 20, 32, 0.78);
  border: 1px solid rgba(222, 184, 100, 0.34);
  border-radius: 4px;
  backdrop-filter: blur(12px);
}

.auth-language-switcher a {
  color: rgba(255, 255, 255, 0.72);
}

.auth-language-switcher a:hover,
.auth-language-switcher a.is-active {
  color: #e8c77c;
}

.auth-language-switcher a.is-active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 620px) {
  .auth-language-switcher {
    top: 10px;
    right: 12px;
  }
}
