body {
  background:
    radial-gradient(circle at top left, rgba(230, 194, 129, 0.24), transparent 28%),
    radial-gradient(circle at bottom right, rgba(18, 78, 92, 0.22), transparent 26%),
    linear-gradient(135deg, #f7f1e6 0%, #efe5d4 42%, #d9d4c9 100%);
  color: #21323a;
}

.login-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-shell::before,
.login-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(18px);
  opacity: .42;
  pointer-events: none;
  z-index: 0;
}

.login-shell::before {
  top: -8rem;
  right: -10rem;
  background: rgba(173, 120, 39, 0.24);
}

.login-shell::after {
  bottom: -12rem;
  left: -10rem;
  background: rgba(23, 83, 93, 0.20);
}

.login-topbar {
  position: relative;
  z-index: 2;
  padding: 1.5rem clamp(1.25rem, 2vw, 2.5rem);
}

.login-topbar .navbar {
  border-radius: 999px;
  background: rgba(16, 40, 47, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(17, 41, 48, 0.18);
  padding: .85rem 1.1rem;
}

.login-topbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.login-topbar .navbar-brand img {
  max-height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.login-topbar .nav-link,
.login-topbar .logout {
  color: rgba(255, 247, 236, 0.88) !important;
}

.login-main {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1.25rem, 2vw, 2.5rem) 3rem;
}

.login-stage {
  max-width: 1240px;
  margin: 0 auto;
}

.auth-page-slot {
  min-height: calc(100vh - 12rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.auth-page-slot > * {
  width: 100%;
}

.auth-split-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, .95fr);
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 251, 245, 0.82);
  border: 1px solid rgba(114, 89, 51, 0.14);
  box-shadow: 0 28px 90px rgba(33, 50, 58, 0.16);
  backdrop-filter: blur(16px);
}

.auth-brand-panel {
  position: relative;
  padding: clamp(2.2rem, 4vw, 4rem);
  background:
    linear-gradient(160deg, rgba(19, 65, 77, 0.96), rgba(15, 43, 50, 0.90)),
    linear-gradient(210deg, #0f3138, #1a5d68);
  color: #f6efe3;
  isolation: isolate;
}

.auth-brand-logo {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
  margin-bottom: 1.35rem;
}

.auth-brand-logo img {
  max-width: 64px;
  max-height: 64px;
  width: auto;
  height: auto;
}

.auth-brand-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: rgba(246, 239, 227, 0.70);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.auth-brand-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: .96;
  font-weight: 800;
  letter-spacing: -.04em;
}

.auth-brand-divider {
  width: 74px;
  height: 4px;
  margin: 1.45rem 0 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #e7be73, rgba(231, 190, 115, 0.22));
}

.auth-brand-copy {
  max-width: 32rem;
  margin: 0 0 1.5rem;
  color: rgba(246, 239, 227, 0.82);
  font-size: 1.02rem;
  line-height: 1.7;
}

.auth-brand-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .85rem;
}

.auth-brand-points li {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: rgba(246, 239, 227, 0.88);
  font-weight: 600;
}

.auth-brand-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e7be73;
  box-shadow: 0 0 0 6px rgba(231, 190, 115, 0.14);
}

.auth-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(231, 190, 115, 0.14);
  pointer-events: none;
  z-index: -1;
}

.auth-orbit-one {
  width: 18rem;
  height: 18rem;
  top: -4rem;
  right: -4rem;
}

.auth-orbit-two {
  width: 24rem;
  height: 24rem;
  top: 2rem;
  right: -9rem;
}

.auth-orbit-three {
  width: 17rem;
  height: 17rem;
  bottom: -6rem;
  left: -5rem;
}

.auth-form-panel {
  padding: clamp(2rem, 4vw, 3.25rem);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.90), rgba(252, 246, 239, 0.82));
}

.auth-form-copy {
  margin-bottom: 1.6rem;
}

.auth-form-copy h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.65rem, 2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #19353f;
}

.auth-form-copy p {
  margin: 0;
  color: #64767c;
  font-size: .98rem;
  line-height: 1.65;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label {
  font-weight: 700;
  color: #284049;
  margin-bottom: .45rem;
}

.auth-section-title {
  margin: .4rem 0 1rem;
  color: #19353f;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-section-title-spaced {
  margin-top: 1rem;
}

.auth-input-group .form-control,
.auth-input-group .input-group-text {
  min-height: 52px;
  border-color: rgba(37, 66, 77, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.auth-input-group .form-control {
  border-radius: 16px 0 0 16px;
  padding-left: 1rem;
}

.auth-input-group .input-group-text {
  border-radius: 0 16px 16px 0;
  color: #8f6a32;
}

.auth-form-panel .form-control,
.auth-form-panel .form-select,
.auth-form-panel .select2-container--krajee-bs5 .select2-selection,
.auth-form-panel .select2-container--krajee-bs5 .select2-selection--single,
.auth-form-panel .kv-date-picker,
.auth-form-panel .input-group .form-control,
.auth-form-panel .input-group .input-group-text {
  min-height: 52px;
  border-color: rgba(37, 66, 77, 0.12);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: none;
}

.auth-form-panel .input-group .form-control {
  border-radius: 16px 0 0 16px;
}

.auth-form-panel .input-group .input-group-text {
  border-radius: 0 16px 16px 0;
  color: #8f6a32;
}

.auth-form-panel .select2-container {
  width: 100% !important;
}

.auth-form-panel .select2-container--krajee-bs5 .select2-selection__rendered,
.auth-form-panel .select2-container--krajee-bs5 .select2-search__field,
.auth-form-panel .form-control,
.auth-form-panel .form-select {
  padding-left: 1rem;
  padding-right: 1rem;
}

.auth-form-panel .help-block,
.auth-form-panel .invalid-feedback,
.auth-form-panel .hint-block {
  font-size: .86rem;
}

.auth-checkbox-field {
  margin: .35rem 0 1.1rem;
}

.auth-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(37, 66, 77, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.auth-checkbox-wrap .form-check {
  margin: 0;
}

.auth-checkbox-wrap .form-check-input {
  margin-top: .15rem;
}

.auth-checkbox-wrap label,
.auth-checkbox-wrap .form-check-label {
  margin: 0;
  font-weight: 600;
  color: #4a5e66;
}

.auth-submit {
  min-height: 54px;
  margin-top: .45rem;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #b67b2d, #d19d49);
  box-shadow: 0 18px 32px rgba(182, 123, 45, 0.22);
  font-weight: 700;
  letter-spacing: .02em;
}

.auth-submit:hover,
.auth-submit:focus {
  background: linear-gradient(135deg, #a56e24, #c99135);
}

.auth-links-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.auth-link,
.auth-install-link {
  color: #1f6472;
  font-weight: 600;
  text-decoration: none;
}

.auth-link-danger {
  color: #9c4f41;
}

.auth-secondary-action {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(37, 66, 77, 0.08);
}

.auth-form-panel .card {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(42, 57, 63, 0.10);
}

.auth-form-panel .card-header {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(31, 55, 65, 0.08);
  background: linear-gradient(180deg, rgba(249, 241, 228, 0.88), rgba(255, 255, 255, 0.92));
  border-radius: 24px 24px 0 0 !important;
}

.auth-form-panel .card-body {
  padding: 1.5rem;
}

.auth-form-panel .site-login,
.auth-form-panel .site-login > .row,
.auth-form-panel .site-login > .row > .col-lg-12,
.auth-form-panel .site-login .container,
.auth-form-panel .site-login .row.align-items-center {
  margin: 0;
  max-width: none;
  width: 100%;
}

.auth-form-panel .site-login .container {
  padding: 0;
}

.auth-form-panel .site-login.mt-4,
.auth-form-panel .site-login .container.mt-4 {
  margin-top: 0 !important;
}

.auth-form-panel .site-login .col-lg-6,
.auth-form-panel .site-login .col-lg-10,
.auth-form-panel .site-login .col-lg-12 {
  width: 100%;
  max-width: none;
  flex: 0 0 100%;
  padding: 0;
}

@media (max-width: 991.98px) {
  .login-topbar {
    padding-bottom: .75rem;
  }

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

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

  .auth-page-slot {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .login-topbar .navbar {
    border-radius: 26px;
  }

  .auth-links-row {
    flex-direction: column;
  }
}
