/* Auth screens */
:root {
  --auth-primary: #0f5ea8;
  --auth-primary-dark: #0a3764;
  --auth-accent: #bfa100;
  --auth-text: #162235;
  --auth-muted: #607089;
  --auth-border: #dbe4ef;
}

html,
body {
  min-height: 100%;
}

body.bg-soft-primary,
body.bg-primary,
body.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 14%, rgba(191, 161, 0, 0.28), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(52, 133, 214, 0.32), transparent 30%),
    radial-gradient(circle at 70% 90%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(120deg, rgba(6, 17, 31, 0.88), rgba(12, 70, 123, 0.78)),
    url("../img/hero-bg.jpg") center/cover fixed no-repeat !important;
  color: var(--auth-text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
}

.auth,
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.auth .container,
.auth-screen .container {
  max-width: 1160px;
}

.auth .row.justify-content-center,
.auth-screen .row {
  align-items: center;
}

.auth__logo {
  max-height: 64px;
  object-fit: contain;
}

.login-page,
.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 28px 90px rgba(2, 8, 23, 0.34) !important;
  backdrop-filter: blur(18px);
}

.login-page .card-body,
.auth-card .card-body {
  padding: 38px;
}

.card-title,
.auth-title {
  color: var(--auth-text);
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.card-title::after,
.auth-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--auth-primary), var(--auth-accent));
}

.auth-kicker {
  color: var(--auth-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.auth-copy,
.auth-panel p,
.login-page small,
.auth-card small {
  color: var(--auth-muted) !important;
}

.auth-panel {
  min-height: 100%;
  padding: 42px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(6, 22, 40, 0.94), rgba(15, 94, 168, 0.76)),
    url("../img/features.jpg") center/cover no-repeat;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
}

.auth-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -72px;
  bottom: -72px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.auth-panel h2,
.auth-panel h3 {
  color: #fff;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.18;
}

.auth-panel p {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 16px;
  line-height: 1.7;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.auth-panel img {
  display: none;
}

.auth-panel-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.auth-panel-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.auth-panel-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--auth-accent);
  flex: 0 0 auto;
}

.login-form label {
  color: var(--auth-text);
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 8px;
}

.login-form .form-group {
  margin-bottom: 16px;
}

.login-form .position-relative .icons {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-primary);
  z-index: 2;
}

.login-form .form-control,
.login-form select {
  min-height: 50px;
  border: 1px solid var(--auth-border) !important;
  border-radius: 10px !important;
  background-color: rgba(248, 251, 255, 0.92);
  color: var(--auth-text);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form .form-control:focus,
.login-form select:focus {
  background: #fff;
  border-color: var(--auth-primary) !important;
  box-shadow: 0 0 0 4px rgba(15, 94, 168, 0.14);
}

.login-form .pl-5 {
  padding-left: 46px !important;
}

.btn.btn-primary,
.login-form .btn-primary {
  min-height: 50px;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark)) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(15, 94, 168, 0.22);
}

.btn.btn-primary:hover,
.login-form .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 94, 168, 0.28);
}

.btn.btn-light {
  min-height: 46px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: #fff;
  color: var(--auth-text);
  font-weight: 650;
}

.custom-control-label,
.forgot-pass a,
.login-form a {
  color: var(--auth-primary) !important;
}

.alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.16);
}

.h-captcha {
  max-width: 100%;
  overflow: hidden;
}

.auth.y .login-page,
.auth.register .login-page {
  max-width: 720px;
  margin: 0 auto;
}

.auth.y .card-body,
.auth.register .card-body {
  padding: 40px;
}

.auth.y .login-form .row,
.auth.register .login-form .row {
  margin-left: -8px;
  margin-right: -8px;
}

.auth.y .login-form .row > [class*="col-"],
.auth.register .login-form .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

@media (min-width: 992px) {
  .auth .col-lg-6,
  .auth-screen .col-lg-6 {
    max-width: 560px;
  }

  .auth.register .col-lg-6,
  .auth.y .col-lg-6 {
    max-width: 680px;
  }
}

@media (max-width: 767px) {
  body.bg-soft-primary,
  body.bg-primary,
  body.auth-body {
    background-attachment: scroll !important;
  }

  .auth,
  .auth-screen {
    min-height: auto;
    padding: 24px 0;
  }

  .login-page .card-body,
  .auth-card .card-body {
    padding: 24px 20px;
  }

  .auth.y .card-body,
  .auth.register .card-body {
    padding: 24px 20px;
  }

  .card-title,
  .auth-title {
    font-size: 22px;
  }

  .auth-panel {
    display: none;
  }
}
