:root {
  --auth-ink: #111827;
  --auth-muted: #64748b;
  --auth-line: rgba(15, 23, 42, 0.12);
  --auth-blue: #0b3f8a;
  --auth-gold: #ff9f1c;
  --auth-bg: #eef3f8;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #071d45;
  color: #ffffff;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.page-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
}

.page-loader__mark span {
  width: 12px;
  height: 36px;
  border-radius: 999px;
  background: var(--auth-gold);
  animation: page-loader-pulse 0.72s ease-in-out infinite;
}

.page-loader__mark span:nth-child(2) {
  animation-delay: 0.12s;
  background: #ffffff;
}

.page-loader__mark span:nth-child(3) {
  animation-delay: 0.24s;
  background: #2f7ad8;
}

.page-loader p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

@keyframes page-loader-pulse {
  0%, 100% {
    transform: scaleY(0.58);
    opacity: 0.68;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

body.bg-soft-primary {
  min-height: 100vh;
  background: var(--auth-bg) !important;
  color: var(--auth-ink);
}

.auth-page {
  min-height: 100vh;
  padding: 36px 16px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(11, 63, 138, 0.96), rgba(17, 24, 39, 0.94)),
    url("../../../assets/assets/img/main-banner1.jpg") center/cover no-repeat;
}

.auth-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.34);
  background: #ffffff;
}

.auth-wrap--compact {
  max-width: 980px;
}

.auth-brand {
  position: relative;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgba(7, 29, 69, 0.92), rgba(11, 63, 138, 0.8)),
    url("../../../assets/assets/img/main-banner2.jpg") center/cover no-repeat;
}

.auth-brand__logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
}

.auth-brand__logo img {
  max-width: 178px;
  max-height: 54px;
  object-fit: contain;
}

.auth-brand__content {
  max-width: 390px;
}

.auth-kicker {
  margin: 0 0 14px;
  color: var(--auth-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-brand h1 {
  margin: 0;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
}

.auth-brand p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.75;
}

.auth-brand__list {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.auth-brand__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.auth-brand__item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 159, 28, 0.18);
  color: var(--auth-gold);
}

.auth-card {
  padding: 42px;
  background: #ffffff;
}

.auth-card__head {
  margin-bottom: 28px;
}

.auth-card__head h2 {
  margin: 0 0 8px;
  color: var(--auth-ink);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}

.auth-card__head p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.65;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.auth-span-2 {
  grid-column: 1 / -1;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label,
.auth-captcha label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.auth-field .position-relative {
  display: flex;
  align-items: center;
}

.auth-field .icons {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #94a3b8;
}

.auth-field .form-control,
.auth-captcha .form-control {
  min-height: 52px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  color: var(--auth-ink);
  font-size: 15px;
  box-shadow: none;
  background: #f8fafc;
}

.auth-field .form-control:focus,
.auth-captcha .form-control:focus {
  border-color: var(--auth-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 63, 138, 0.1);
}

.auth-field select.form-control {
  height: 52px;
}

.auth-captcha {
  margin-bottom: 20px;
}

.auth-captcha__row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(110px, 1fr);
  gap: 12px;
}

.auth-captcha__question {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(11, 63, 138, 0.35);
  border-radius: 8px;
  background: rgba(11, 63, 138, 0.06);
  color: var(--auth-blue);
  font-size: 18px;
  font-weight: 900;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.auth-card .custom-control-label,
.auth-muted-link,
.auth-card small {
  color: var(--auth-muted) !important;
}

.auth-muted-link {
  font-weight: 700;
}

.auth-primary-btn,
.auth-secondary-btn {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.auth-primary-btn {
  background: var(--auth-blue) !important;
  color: #ffffff !important;
}

.auth-secondary-btn {
  background: rgba(255, 159, 28, 0.16) !important;
  color: #8a4c00 !important;
}

.auth-footer-link {
  margin-top: 20px;
  text-align: center;
  color: var(--auth-muted);
  font-size: 15px;
}

.auth-footer-link a {
  color: var(--auth-blue);
  font-weight: 800;
}

.auth-alert {
  margin-bottom: 18px;
  border-radius: 8px;
}

@media (max-width: 991px) {
  .auth-wrap,
  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
    padding: 30px;
  }

  .auth-brand__content {
    margin-top: 44px;
  }

  .auth-card {
    padding: 30px;
  }
}

@media (max-width: 575px) {
  .auth-page {
    padding: 18px 10px;
  }

  .auth-brand,
  .auth-card {
    padding: 24px 18px;
  }

  .auth-brand h1,
  .auth-card__head h2 {
    font-size: 28px;
  }

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

  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
