.auth-page-body {
  min-height: 100vh;
  margin: 0;
  color: #1f2937;
  background:
    radial-gradient(circle at 16% 18%, rgba(47, 111, 237, 0.10), transparent 26%),
    radial-gradient(circle at 86% 82%, rgba(29, 78, 216, 0.08), transparent 28%),
    #f5f6f9;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  min-height: 100vh;
}

.auth-brand-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 56px clamp(32px, 7vw, 96px);
  overflow: hidden;
  color: #16233d;
  background: linear-gradient(135deg, #eaf1fd, #e4ecfb);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand-panel::before {
  top: -18%;
  right: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.14), transparent 68%);
}

.auth-brand-panel::after {
  bottom: -22%;
  left: -8%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.10), transparent 68%);
}

.auth-brand-content {
  position: relative;
  width: min(640px, 100%);
}

.auth-brand-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 40px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(47, 111, 237, 0.14);
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(22, 35, 61, 0.10);
}

.auth-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(22, 35, 61, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-brand-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: #2f6fed;
  border-radius: 999px;
}

.auth-brand-panel h1 {
  max-width: 560px;
  margin: 0;
  color: #101828;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
}

.auth-brand-panel p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(22, 35, 61, 0.68);
  font-size: 16px;
  line-height: 1.65;
}

.auth-brand-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.auth-brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #16233d;
  font-size: 15px;
  font-weight: 700;
}

.auth-brand-features svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #2f6fed;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-brand-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 520px;
  margin-top: 42px;
}

.auth-brand-metrics div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(47, 111, 237, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.auth-brand-metrics strong {
  display: block;
  color: #101828;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.auth-brand-metrics span {
  display: block;
  margin-top: 7px;
  color: rgba(22, 35, 61, 0.64);
  font-size: 12px;
  font-weight: 700;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 32px;
  background: #11151d;
}

.auth-login-card {
  width: min(100%, 450px);
  padding: 36px;
  background: #ffffff;
  border: 1px solid rgba(47, 111, 237, 0.14);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(14, 18, 28, 0.28);
}

.auth-form-heading {
  margin-bottom: 26px;
}

.auth-form-heading > span {
  display: inline-block;
  margin-bottom: 8px;
  color: #3b5bdb;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-form-heading h2 {
  margin: 0;
  color: #111827;
  font-size: 32px;
  font-weight: 900;
}

.auth-form-heading p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
}

.auth-login-card .form-group {
  margin-bottom: 18px;
}

.auth-login-card .col-form-label {
  padding: 0 0 7px;
  color: #253047;
  font-size: 13px;
  font-weight: 800;
}

.auth-login-card .form-control {
  min-height: 46px;
  color: #111827;
  background: #f7f9fc;
  border: 1px solid #d9dfe8;
  border-radius: 8px;
  font-size: 14px;
}

.auth-login-card .form-control:focus {
  color: #111827;
  background: #ffffff;
  border-color: #2f6fed;
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.16);
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
  position: absolute;
  right: 0;
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.credential-tooltip {
  display: block;
  cursor: help;
}

.credential-tooltip .form-control:disabled {
  color: #5b667a;
  background-color: #eef1f6;
  border-color: #dbe1ea;
  cursor: not-allowed;
  opacity: 1;
}

.credential-tooltip .form-control:disabled::placeholder {
  color: #8791a3;
}

.credential-tooltip .password-field .form-control:disabled {
  padding-right: 46px !important;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: #3b5bdb;
  background: transparent;
  border: 0;
  transform: translateY(-50%);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.demo-role-section {
  margin-top: 22px;
}

.demo-role-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.demo-role-heading > span {
  color: #253047;
  font-weight: 800;
}

.demo-role-heading small {
  color: #7a8494;
  font-weight: 600;
}

.demo-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-role-grid-single {
  grid-template-columns: 1fr;
}

.demo-role-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  gap: 9px;
  color: #3d4a63;
  background: #fbfcfe;
  border: 1px solid #d9dfe8;
  border-radius: 8px;
  font-weight: 800;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.demo-role-button:hover,
.demo-role-button:focus-visible {
  color: #111827;
  background: #eef2fc;
  border-color: #2f6fed;
  transform: translateY(-1px);
}

.demo-role-button.active {
  color: #ffffff;
  background: #2f6fed;
  border-color: #2f6fed;
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.28);
}

.demo-role-icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
}

.demo-role-icon svg {
  width: 18px;
  height: 18px;
}

.auth-submit-button {
  min-height: 48px;
  margin-top: 4px;
  color: #ffffff !important;
  background: #2f6fed !important;
  border-color: #2f6fed !important;
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(47, 111, 237, 0.28);
}

.auth-submit-button:hover,
.auth-submit-button:focus-visible {
  color: #ffffff !important;
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.login-card .theme-form button[type="submit"]:disabled,
.auth-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.invalid-feedback {
  font-size: 12px;
}

@media (max-width: 991.98px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

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

  .auth-brand-logo-chip {
    display: none;
  }

  .auth-brand-panel h1 {
    font-size: clamp(28px, 7vw, 42px);
  }

  .auth-brand-panel p {
    margin-top: 14px;
    font-size: 15px;
  }

  .auth-brand-metrics {
    margin-top: 24px;
  }

  .auth-form-panel {
    align-items: flex-start;
    padding: 24px;
    background: #f5f6f9;
  }
}

@media (max-width: 575.98px) {
  .auth-brand-panel {
    padding: 28px 18px 24px;
  }

  .auth-brand-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .auth-brand-metrics div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
  }

  .auth-brand-metrics strong {
    font-size: 22px;
  }

  .auth-form-panel {
    padding: 16px;
  }

  .auth-login-card {
    padding: 24px 18px;
    border-radius: 8px;
  }

  .auth-form-heading h2 {
    font-size: 28px;
  }

  .demo-role-grid {
    grid-template-columns: 1fr;
  }

  .demo-role-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 380px) {
  .auth-login-card {
    padding: 22px 14px;
  }

  .demo-role-button {
    font-size: 13px;
  }
}
