/* Public login page */
*, *::before, *::after { box-sizing: border-box; }

.auth-body {
  margin: 0;
  min-height: 100vh;
  background: #f4f6fb;
  color: #172033;
  font-family: 'Roboto', sans-serif;
}

.auth-page-shell {
  display: grid;
  grid-template-columns: minmax(330px, 44%) minmax(420px, 56%);
  min-height: 100vh;
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(0, 0, 235, .97), rgba(0, 0, 89, .98) 65%, #05051f),
    #000080;
}

.auth-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .28;
  pointer-events: none;
}

.auth-showcase-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.auth-showcase-glow-one {
  width: 360px;
  height: 360px;
  right: -140px;
  top: -110px;
  background: rgba(85, 134, 255, .3);
}

.auth-showcase-glow-two {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: -130px;
  background: rgba(255, 8, 0, .16);
}

.auth-showcase-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 650px;
  margin: auto;
  padding: clamp(2.25rem, 6vw, 5rem);
}

.auth-showcase-home,
.auth-showcase-brand,
.auth-feature-list div {
  display: flex;
  align-items: center;
}

.auth-showcase-home {
  width: fit-content;
  gap: .65rem;
  margin-bottom: clamp(3.25rem, 9vh, 7rem);
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, transform .2s;
}

.auth-showcase-home:hover { color: #fff; transform: translateX(-3px); }

.auth-showcase-brand {
  gap: .8rem;
  margin-bottom: 2.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-showcase-logo,
.auth-logo {
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
}

.auth-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 13px;
  background: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.auth-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .42rem .72rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dbe5ff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.auth-showcase-copy h2 {
  max-width: 560px;
  margin: 0 0 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.auth-showcase-copy p {
  max-width: 540px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 1rem;
  line-height: 1.75;
}

.auth-feature-list {
  display: grid;
  gap: .8rem;
  margin-top: 2.3rem;
}

.auth-feature-list div {
  gap: .8rem;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
}

.auth-feature-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255,255,255,.12);
  color: #fff;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background:
    radial-gradient(circle at 88% 8%, rgba(0,0,235,.08), transparent 25%),
    #f4f6fb;
}

.auth-wrapper {
  width: 100%;
  max-width: 500px;
}

.auth-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid #e5e9f2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(26, 34, 59, .12);
}

.auth-mobile-brand { display: none; }

.auth-header { margin-bottom: 2rem; }

.auth-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: #eef0ff;
  color: #0000eb;
  font-size: 1.05rem;
}

.auth-brand {
  margin: 0 0 .45rem;
  color: #15192e;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.auth-tagline {
  margin: 0;
  color: #778096;
  font-size: .94rem;
}

.auth-form .form-label {
  margin-bottom: .45rem;
  color: #30384c;
  font-size: .86rem;
  font-weight: 600;
}

.input-icon-wrap { position: relative; }

.input-icon-wrap .form-control {
  min-height: 52px;
  padding: .8rem 2.8rem .8rem 2.75rem;
  border: 1.5px solid #dfe4ee;
  border-radius: 12px;
  background: #fbfcff;
  color: #1f2937;
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.input-icon-wrap .form-control:focus {
  border-color: #0000eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 235, .08);
}

.input-icon {
  position: absolute;
  z-index: 2;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #97a0b5;
  font-size: .88rem;
  pointer-events: none;
}

.toggle-password {
  position: absolute;
  z-index: 2;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8c95aa;
  cursor: pointer;
}

.toggle-password:hover { background: #eef0ff; color: #0000eb; }

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #657087;
  font-size: .84rem;
}

.auth-options .form-check-input:checked {
  border-color: #0000eb;
  background-color: #0000eb;
}

.forgot-link {
  color: #0000c9;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

.auth-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0000eb, #00009c);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: .94rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 190, .2);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(0, 0, 190, .26);
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 1.25rem;
  border: 1px solid #ffd1d1;
  border-radius: 12px;
  background: #fff5f5;
  color: #9f1c1c;
  font-size: .86rem;
}

.auth-alert i { margin-top: .15rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.7rem 0 1.1rem;
  color: #9aa2b5;
  font-size: .78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e7eaf1;
}

.auth-register-link {
  margin: 0;
  color: #687188;
  text-align: center;
  font-size: .86rem;
  line-height: 1.6;
}

.auth-register-link a {
  color: #0000c9;
  font-weight: 700;
  text-decoration: none;
}

.auth-register-link a:hover { text-decoration: underline; }

.auth-home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.2rem;
  padding: .78rem 1rem;
  border: 1px solid #e1e5ef;
  border-radius: 11px;
  background: #f8f9fc;
  color: #4f596f;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}

.auth-home-link:hover {
  border-color: #bfc5ff;
  background: #f0f1ff;
  color: #0000c9;
}

.auth-security-note {
  margin: 1rem 0 0;
  color: #8991a4;
  text-align: center;
  font-size: .76rem;
}

.auth-security-note i { margin-right: .35rem; }

@media (max-width: 940px) {
  .auth-page-shell { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-main { padding: 1.25rem; }
  .auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 2rem;
    color: #0000c9;
    font-family: 'Montserrat', sans-serif;
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
  }
  .auth-mobile-brand .auth-brand-mark {
    width: 40px;
    height: 40px;
    background: #eef0ff;
    color: #0000eb;
    border-color: #dfe1ff;
  }
  .auth-mobile-brand .auth-logo { max-width: 48px; max-height: 48px; }
}

@media (max-width: 520px) {
  .auth-main { align-items: flex-start; padding: .8rem; }
  .auth-card { padding: 1.45rem; border-radius: 18px; }
  .auth-options { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .auth-header { margin-bottom: 1.55rem; }
}

/* Version 1.2.0 configurable login content */
.auth-showcase-content {
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.4) rgba(255,255,255,.08);
}
.auth-showcase-content::-webkit-scrollbar { width: 7px; }
.auth-showcase-content::-webkit-scrollbar-track { background: rgba(255,255,255,.08); border-radius: 999px; }
.auth-showcase-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,.4); border-radius: 999px; }
.auth-showcase-copy h2,
.auth-showcase-copy p,
.auth-feature-list span { overflow-wrap: anywhere; }
