:root {
  --login-nav: #313a46;
  --login-nav-deep: #252d38;
  --login-blue: #3ca6fb;
  --login-blue-strong: #238edf;
  --login-canvas: #f4f7fb;
  --login-surface: #ffffff;
  --login-text: #172033;
  --login-muted: #64748b;
  --login-border: #dce5ee;
  --login-shadow: 0 24px 70px rgba(15, 23, 42, .14);
  --login-ease: cubic-bezier(.4, 0, .2, 1);
}

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

html.login-bg {
  background: var(--login-canvas);
}

html.login-bg body {
  margin: 0;
  color: var(--login-text);
  background:
    radial-gradient(circle at 8% 12%, rgba(60, 166, 251, .12), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(35, 142, 223, .1), transparent 28%),
    var(--login-canvas);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.login-topbar {
  min-height: 68px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--login-nav);
  box-shadow: 0 4px 18px rgba(15, 23, 42, .16);
}

.login-topbar .navbar-header,
.login-topbar .navbar-brand {
  height: 68px;
}

.login-topbar .navbar-header {
  display: flex;
  align-items: center;
}

.login-brand-link {
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: #fff;
  text-decoration: none;
}

.login-brand-link:hover,
.login-brand-link:focus {
  color: #fff;
  text-decoration: none;
}

.login-brand-link .brand-mark,
.login-card-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #55b6ff, var(--login-blue-strong));
  box-shadow: 0 7px 15px rgba(35, 142, 223, .28);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
}

.login-brand-link .brand-copy {
  display: flex;
  flex-direction: column;
  margin-left: 11px;
  line-height: 1.05;
  text-transform: uppercase;
}

.login-brand-link .brand-name {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .075em;
}

.login-brand-link .brand-product {
  margin-top: 4px;
  color: var(--login-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
}

.login-topbar .navbar-nav {
  margin-top: 9px;
  margin-right: 14px;
}

.login-topbar .navbar-nav > li > a {
  margin: 3px;
  padding: 10px 13px;
  border-radius: 10px;
  color: #dce4ee;
  font-size: 13px;
  font-weight: 600;
}

.login-topbar .navbar-nav > li > a:hover,
.login-topbar .navbar-nav > li > a:focus {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

.modern-login-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 12px 14px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
}

.login-topbar .modern-login-toggle:hover,
.login-topbar .modern-login-toggle:focus {
  border-color: rgba(60, 166, 251, .55);
  background: rgba(60, 166, 251, .16);
  outline: 0;
}

.modern-login-toggle .icon-bar {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 !important;
  border-radius: 2px;
  background: #fff !important;
  transform-origin: center;
  transition: transform 240ms var(--login-ease), opacity 160ms ease;
}

.modern-login-toggle.collapsed .icon-bar--top {
  transform: translateY(-7px);
}

.modern-login-toggle.collapsed .icon-bar--middle {
  opacity: 1;
  transform: scaleX(1);
}

.modern-login-toggle.collapsed .icon-bar--bottom {
  transform: translateY(7px);
}

.modern-login-toggle:not(.collapsed) .icon-bar--top {
  transform: rotate(45deg);
}

.modern-login-toggle:not(.collapsed) .icon-bar--middle {
  opacity: 0;
  transform: scaleX(0);
}

.modern-login-toggle:not(.collapsed) .icon-bar--bottom {
  transform: rotate(-45deg);
}

.login-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: 100vh;
  padding-top: 68px;
}

.login-intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding: 70px clamp(40px, 7vw, 110px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(49, 58, 70, .96), rgba(31, 42, 56, .98)),
    url("../images/landscape.jpg") center / cover no-repeat;
}

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

.login-intro::before {
  top: -150px;
  right: -160px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 70px rgba(60, 166, 251, .035), 0 0 0 140px rgba(60, 166, 251, .025);
}

.login-intro::after {
  bottom: -170px;
  left: -130px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(60, 166, 251, .17), rgba(60, 166, 251, 0) 68%);
}

.intro-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #dceaf8;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}

.intro-badge i {
  color: var(--login-blue);
}

.intro-logo {
  display: block;
  width: auto;
  max-width: 118px;
  max-height: 78px;
  margin: 38px 0 24px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18));
}

.login-intro h1 {
  max-width: 580px;
  margin: 0;
  color: #fff;
  font-size: clamp(37px, 4.7vw, 62px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.07;
}

.login-intro > .intro-content > p {
  max-width: 530px;
  margin: 24px 0 0;
  color: #bfcbd9;
  font-size: 17px;
  line-height: 1.7;
}

.intro-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 34px 0 0;
  padding: 0;
  color: #e8eef5;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.intro-features li {
  display: flex;
  align-items: center;
}

.intro-features i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 9px;
  border-radius: 50%;
  color: #fff;
  background: rgba(60, 166, 251, .2);
  font-size: 10px;
}

.login-card-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding: 48px clamp(24px, 6vw, 88px);
  background: rgba(244, 247, 251, .92);
}

.login-wrapper .box {
  width: 100%;
  max-width: 450px;
  margin: 0;
  padding: 38px;
  border: 1px solid rgba(220, 229, 238, .9);
  border-radius: 20px;
  background: var(--login-surface);
  box-shadow: var(--login-shadow);
}

.login-wrapper .content-wrap {
  width: 100%;
  margin: 0;
}

.login-card-brand {
  display: none;
  margin-bottom: 24px;
}

.login-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--login-blue-strong);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-wrapper .box h1 {
  margin: 0;
  color: var(--login-text);
  font-size: 31px;
  font-weight: 760;
  letter-spacing: -.03em;
}

.login-subtitle {
  margin: 9px 0 24px;
  color: var(--login-muted);
  font-size: 14px;
}

#sign-in-alert-container {
  display: flex;
  align-items: flex-start;
  min-height: 44px;
  margin: 0 0 22px;
  padding: 12px 13px;
  border-width: 1px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.45;
}

#sign-in-alert-icon {
  flex: 0 0 auto;
  margin: 2px 8px 0 0;
}

#sign-in-alert-container.alert-info {
  border-color: #c3e2f7;
  color: #155276;
  background: #eff8ff;
}

#sign-in-alert-container.alert-danger {
  border-color: #efc2c2;
  color: #8e2929;
  background: #fff3f3;
}

#sign-in-alert-container.alert-success {
  border-color: #bde5d2;
  color: #12623f;
  background: #effaf5;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  margin-bottom: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

.login-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-label-row a {
  margin-bottom: 7px;
  color: var(--login-blue-strong);
  font-size: 12px;
  font-weight: 600;
}

.login-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.login-forgot-row a {
  color: var(--login-blue-strong);
  font-size: 12px;
  font-weight: 600;
}

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

.login-input-wrap > i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  color: #8593a6;
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-wrapper .box .username,
.login-wrapper .box .password {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 10px 44px 10px 43px;
  border: 1px solid #cfd9e5;
  border-radius: 11px;
  color: var(--login-text);
  background: #fff;
  background-image: none;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-wrapper .box .username::placeholder,
.login-wrapper .box .password::placeholder {
  color: #9aa7b8;
  font-style: normal;
}

.login-wrapper .box .username:focus,
.login-wrapper .box .password:focus {
  border-color: var(--login-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(60, 166, 251, .18);
}

.password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #7a889a;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus {
  color: var(--login-blue-strong);
  background: #edf7ff;
  outline: 0;
}

.login-wrapper .remember {
  margin-bottom: 18px;
}

#btn-login {
  min-height: 48px;
  margin-top: 6px;
  border: 1px solid var(--login-blue-strong);
  border-radius: 11px;
  color: #fff;
  background: var(--login-blue-strong);
  box-shadow: 0 8px 18px rgba(35, 142, 223, .22);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#btn-login:hover,
#btn-login:focus {
  border-color: #197cbd;
  color: #fff;
  background: #197fc4;
  box-shadow: 0 10px 22px rgba(35, 142, 223, .26);
  outline: 0;
  transform: translateY(-1px);
}

#btn-login[disabled] {
  box-shadow: none;
  cursor: wait;
  opacity: .68;
  transform: none;
}

.login-support {
  margin: 22px 0 0;
  color: var(--login-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.login-support a {
  color: var(--login-blue-strong);
  font-weight: 600;
}

.login-bg .modal-content {
  overflow: hidden;
  border: 1px solid var(--login-border);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
}

.login-bg .modal-header,
.login-bg .modal-footer {
  border-color: var(--login-border);
  background: #f8fafc;
}

.login-bg .modal-header {
  padding: 18px 20px;
}

.login-bg .modal-title {
  color: var(--login-text);
  font-weight: 700;
}

.login-bg .modal-body {
  padding: 20px;
  color: #475569;
  line-height: 1.65;
}

.login-bg .modal-footer {
  padding: 14px 20px;
}

.login-bg .modal-footer .btn {
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 9px;
}

.login-bg #forgot.in,
.login-bg #contact.in {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px !important;
}

/* Bootstrap removes .in before its fade-out completes. Keep the modal
   centered while its inline display:block is still active. */
.login-bg #forgot[style*="display: block"],
.login-bg #contact[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px !important;
}

.login-bg #forgot .modal-dialog,
.login-bg #contact .modal-dialog {
  width: 100%;
  max-width: 480px;
  margin: auto;
  transform: scale(.97);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.login-bg #forgot.in .modal-dialog,
.login-bg #contact.in .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.login-bg #forgot-password-form label {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-weight: 600;
}

.login-bg #forgot-email {
  display: block;
  width: 100%;
  min-height: 74px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid #b8c2cf;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  box-sizing: border-box;
}

.login-bg #forgot-email:focus {
  border-color: #2895df;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(40, 149, 223, .14);
}

.login-bg #forgot-email.forgot-field-error {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .10);
}

.forgot-password-message {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
}

.forgot-password-message.is-error { color: #b42318; }
.forgot-password-message.is-success { color: #067647; }

.reset-password-page { display:flex; align-items:center; justify-content:center; min-height:100vh; margin:0; padding:24px; background:#eef3f8; color:#172033; box-sizing:border-box; }
.reset-password-card { width:100%; max-width:460px; padding:30px; border:1px solid #d8e1ec; border-radius:16px; background:#fff; box-shadow:0 18px 45px rgba(26,39,57,.12); }
.reset-password-card h1 { margin:5px 0 20px; font-size:28px; }
.reset-password-card label { display:block; margin:15px 0 7px; }
.reset-password-card .form-control { height:44px; }
.reset-password-card .btn { margin-top:20px; }
.reset-login-link { display:block; margin-top:18px; text-align:center; }

.login-bg #contact .contact-field { margin-bottom:14px; }
.login-bg #contact .contact-field label { display:block; margin-bottom:6px; color:#344054; font-weight:600; }
.login-bg #contact .contact-field input,
.login-bg #contact .contact-field textarea { width:100%; padding:10px 12px; border:1px solid #b8c2cf; border-radius:6px; background:#fff; box-sizing:border-box; }
.login-bg #contact .contact-field textarea { min-height:110px; resize:vertical; }
.login-bg #contact .contact-field input:focus,
.login-bg #contact .contact-field textarea:focus { border-color:#2895df; outline:0; box-shadow:0 0 0 3px rgba(40,149,223,.14); }
.login-bg #contact .contact-field-error { border-color:#d92d20 !important; box-shadow:0 0 0 3px rgba(217,45,32,.10) !important; }
.contact-honeypot { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

.login-bg #forgot .modal-body p,
.login-bg #contact .modal-body p {
  margin: 0;
}

@media (max-width: 1000px) {
  .login-wrapper {
    grid-template-columns: minmax(0, .82fr) minmax(400px, 1fr);
  }

  .login-intro {
    padding-right: 42px;
    padding-left: 42px;
  }

  .login-intro h1 {
    font-size: 40px;
  }

  .intro-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 799px) {
  .login-topbar,
  .login-topbar .navbar-header,
  .login-topbar .navbar-brand {
    min-height: 64px;
    height: 64px;
  }

  .login-topbar .navbar-header {
    display: block;
  }

  .login-brand-link {
    padding-left: 16px;
  }

  .modern-login-toggle {
    display: block;
    margin-top: 10px;
  }

  .login-topbar .navbar-collapse {
    max-height: none;
    border: 0;
    background: var(--login-nav);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .18);
  }

  .login-topbar .navbar-nav {
    margin: 6px 8px 10px;
  }

  .login-topbar .navbar-nav > li > a {
    margin: 2px 0;
  }

  .login-wrapper {
    display: block;
    min-height: 100vh;
    padding-top: 64px;
  }

  .login-intro {
    display: none;
  }

  .login-card-section {
    min-height: calc(100vh - 64px);
    padding: 34px 18px;
  }

  .login-card-brand {
    display: block;
  }
}

@media (max-width: 480px) {
  .login-brand-link .brand-copy {
    display: none;
  }

  .login-wrapper .box {
    max-width: 100%;
    padding: 28px 22px;
    border-radius: 17px;
  }

  .login-wrapper .box h1 {
    font-size: 27px;
  }

  .login-card-section {
    align-items: flex-start;
    padding-top: 24px;
  }
}

.login-alert-pulse {
  animation: login-alert-pulse .5s ease-out;
}

@keyframes login-alert-pulse {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.025); }
  70% { transform: scale(.995); }
}

@media (prefers-reduced-motion: reduce) {
  .login-bg *,
  .login-bg *::before,
  .login-bg *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
