html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Login */
.login-page {
  min-height: 100vh;
  margin: 0;
  background: #f3f6fa;
  color: #17243b;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.12fr) minmax(480px, .88fr);
  min-height: 100vh;
  overflow: hidden;
}

.login-hero {
  position: relative;
  overflow: hidden;
  background: url('/images/login.webp') center center / cover no-repeat;
  color: #fff;
}

.login-hero::before,
.login-hero::after {
  position: absolute;
  content: '';
  pointer-events: none;
}

.login-hero::before {
  inset: 0;
  background: radial-gradient(ellipse at 82% 9%, rgba(109, 197, 255, .58), transparent 35%), linear-gradient(180deg, rgba(5, 27, 52, .03) 0%, rgba(4, 25, 49, .18) 42%, rgba(3, 21, 42, .76) 100%), linear-gradient(105deg, rgba(5, 24, 46, .2), rgba(4, 22, 41, .58));
}

.login-hero::after {
  right: -14%;
  bottom: -11%;
  width: 85%;
  height: 62%;
  background: repeating-linear-gradient(90deg, rgba(122, 204, 255, .22) 0 1px, transparent 1px 43px), repeating-linear-gradient(0deg, rgba(122, 204, 255, .19) 0 1px, transparent 1px 31px), linear-gradient(135deg, #195384, #092643);
  clip-path: polygon(35% 0, 100% 14%, 100% 100%, 0 100%, 0 27%);
  opacity: .52;
  transform: perspective(500px) rotateY(-12deg);
  display: none;
}

.hero-building {
  position: absolute;
  bottom: -10%;
  background: repeating-linear-gradient(90deg, rgba(174, 222, 252, .28) 0 2px, transparent 2px 27px), repeating-linear-gradient(0deg, rgba(174, 222, 252, .2) 0 2px, transparent 2px 22px), linear-gradient(160deg, #2a6792, #102d4b);
  box-shadow: 20px 0 70px rgba(0, 13, 32, .38);
  opacity: .58;
}

.hero-building-one { left: -7%; width: 45%; height: 47%; transform: skewY(-10deg); }
.hero-building-two { left: 28%; width: 37%; height: 67%; transform: skewY(4deg); opacity: .48; }
.hero-building-three { right: 14%; width: 30%; height: 81%; transform: skewY(-13deg); opacity: .36; }
.hero-building { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100vh;
  max-width: 660px;
  padding: clamp(38px, 7vw, 80px) clamp(34px, 8vw, 110px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: inherit;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.8px;
  text-decoration: none;
}

.brand > span:last-child > span { color: #3d9bf2; }
.brand-on-dark > span:last-child > span { color: #64c2ff; }
.brand-logo { display: block; width: 145px; height: auto; max-height: 42px; object-fit: contain; }

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px 4px 10px 4px;
  background: linear-gradient(135deg, #0875e8, #49b9ff);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -3px;
  line-height: 1;
}

.brand-on-dark .brand-mark { background: rgba(255, 255, 255, .95); color: #125896; }
.hero-copy { position: relative; margin-top: clamp(95px, 17vh, 180px); max-width: 430px; }
.hero-copy::before { position: absolute; z-index: -1; top: -32px; left: -28px; width: 440px; height: 300px; border-radius: 50%; background: radial-gradient(ellipse, rgba(4, 27, 54, .62), transparent 70%); content: ''; filter: blur(8px); }
.eyebrow { margin: 0 0 18px; color: #7ed0ff; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.hero-copy h1 { margin: 0; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.14; letter-spacing: -2px; }
.hero-copy h1 strong { color: #58baff; font-weight: 700; }
.hero-copy > p:last-child { max-width: 330px; margin: 24px 0 0; color: rgba(235, 247, 255, .72); font-size: 14px; line-height: 1.8; }
.hero-features { display: flex; gap: 25px; margin-top: auto; padding-top: 40px; }
.hero-features span { display: grid; grid-template-columns: 34px auto; grid-template-rows: 1fr 1fr; column-gap: 10px; align-items: center; min-width: 88px; color: rgba(238, 249, 255, .88); font-size: 11px; line-height: 1.3; }
.hero-features span + span { border-left: 1px solid rgba(255, 255, 255, .28); padding-left: 27px; }
.hero-features i { grid-row: 1 / 3; color: #51bdff; font-style: normal; }
.feature-icon { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(81, 189, 255, .65); border-radius: 9px; background: rgba(13, 111, 185, .2); box-shadow: 0 0 18px rgba(36, 158, 232, .14); }
.feature-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.hero-features strong, .hero-features small { grid-column: 2; }
.hero-features strong { align-self: end; font-size: 11px; font-weight: 600; }
.hero-features small { align-self: start; color: rgba(238, 249, 255, .68); font-size: 10px; }

.login-panel { display: grid; place-items: center; padding: 38px; background: #f6f8fb; }
.login-card { width: min(100%, 450px); box-sizing: border-box; padding: clamp(30px, 4vw, 48px); border: 1px solid rgba(218, 226, 237, .8); border-radius: 14px; background: rgba(255, 255, 255, .9); box-shadow: 0 18px 50px rgba(38, 66, 102, .08); }
.brand-on-light { color: #182945; margin-bottom: 40px; }
.login-heading { text-align: center; }
.login-heading h2 { margin: 0; color: #172943; font-size: 23px; letter-spacing: -.7px; }
.login-heading p { margin: 10px 0 0; color: #8794a8; font-size: 12px; }
.login-form { margin-top: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; color: #36445b; font-size: 11px; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 42px; border: 1px solid #d7e0eb; border-radius: 7px; outline: none; background: #fff; color: #24344c; font: inherit; font-size: 12px; transition: border-color .2s, box-shadow .2s; }
.input-wrap input::placeholder { color: #a9b5c5; }
.input-wrap input:focus { border-color: #1473e6; box-shadow: 0 0 0 3px rgba(20, 115, 230, .12); }
.field-icon { position: absolute; top: 50%; left: 13px; display: grid; color: #7890ad; transform: translateY(-50%); }
.field-icon svg, .eye-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.password-toggle { position: absolute; top: 50%; right: 12px; display: grid; padding: 4px; border: 0; background: transparent; color: #7890ad; cursor: pointer; transform: translateY(-50%); }
.password-toggle .eye-hidden { display: none; }
.password-toggle.is-visible .eye-visible { display: none; }
.password-toggle.is-visible .eye-hidden { display: block; }
.password-toggle:focus-visible, .login-submit:focus-visible, .sso-button:focus-visible { outline: 3px solid rgba(20, 115, 230, .3); outline-offset: 2px; }
.login-error { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 13px; border: 1px solid #f4c6cc; border-radius: 9px; background: linear-gradient(135deg, #fff7f8, #fffafb); color: #8f2635; box-shadow: 0 5px 14px rgba(192, 57, 69, .06); font-size: 11px; line-height: 1.45; }
.error-icon { display: grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #d94b5b; color: #fff; font-size: 12px; font-weight: 700; }
.login-error div { display: grid; gap: 2px; }
.login-error strong { color: #9e2938; font-size: 11px; font-weight: 700; }
.login-error div > span { color: #b04a57; }
.field-error, .validation-summary { display: block; margin-top: 5px; color: #c03945; font-size: 11px; }
.validation-summary { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #f4c6cc; border-radius: 8px; background: #fff7f8; }
.validation-summary:empty { display: none; }
.validation-summary ul { margin: 0; padding-left: 17px; }
.form-options { display: flex; align-items: center; justify-content: space-between; margin: 5px 0 21px; color: #8290a3; font-size: 11px; }
.remember-me { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.remember-me input { width: 14px; height: 14px; margin: 0; accent-color: #0875e8; }
.forgot-password { color: #0875e8; cursor: help; font-weight: 600; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 13px; width: 100%; height: 46px; border: 0; border-radius: 7px; background: linear-gradient(100deg, #0875e8, #0564d6); color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; box-shadow: 0 7px 14px rgba(7, 104, 218, .2); transition: transform .2s, box-shadow .2s; }
.login-submit:hover { box-shadow: 0 10px 20px rgba(7, 104, 218, .3); transform: translateY(-1px); }
.login-submit span { font-size: 20px; font-weight: 400; line-height: 0; }
.login-divider { display: flex; align-items: center; gap: 13px; margin: 22px 0 13px; color: #a6b1c0; font-size: 10px; }
.login-divider::before, .login-divider::after { flex: 1; height: 1px; background: #e6ebf1; content: ''; }
.sso-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 42px; border: 1px solid #d8e2ed; border-radius: 7px; background: #fff; color: #53647c; font: inherit; font-size: 11px; font-weight: 600; }
.sso-button:disabled { cursor: not-allowed; opacity: .92; }
.sso-button span { color: #1473e6; font-size: 18px; }
.login-footer { margin: 24px 0 0; color: #a4afbd; font-size: 9px; text-align: center; }
.login-footer strong { color: #78879d; }
.login-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.login-footer a:hover { color: #0875e8; text-decoration: underline; }

@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { min-height: 360px; }
  .hero-content { min-height: 360px; padding: 34px 8vw; }
  .hero-copy { margin-top: 48px; }
  .hero-copy h1 { font-size: 35px; }
  .hero-copy > p:last-child { margin-top: 12px; }
  .hero-features { display: none; }
  .login-panel { min-height: 520px; padding: 35px 20px 50px; }
}

@media (max-width: 480px) {
  .login-hero { min-height: 310px; }
  .hero-content { min-height: 310px; padding: 25px 24px; }
  .hero-copy { margin-top: 42px; }
  .hero-copy h1 { font-size: 30px; letter-spacing: -1px; }
  .hero-copy > p:last-child { max-width: 270px; font-size: 12px; }
  .login-panel { padding: 24px 14px 40px; }
  .login-card { padding: 28px 22px; }
  .brand-on-light { margin-bottom: 30px; }
}
