/* =====================================================
  MAIN COLORS
  ===================================================== */
/* =====================================================
   BASE COLORS
   ===================================================== */
/* =====================================================
   STATUS COLORS (Custom replacing Bootstrap defaults)
   ===================================================== */
/* =====================================================
   SEMANTIC COLORS
   ===================================================== */
/* =====================================================
   EXTENDED COLOR PALETTE
   ===================================================== */
/* =====================================================
   SPACING TOKENS (form field layout)
   ===================================================== */
/* =====================================================
   BREAKPOINTS (individual variables for use in @media rules)
   The $grid-breakpoints map is kept for Bootstrap compatibility.
   Individual scalar variables allow direct use in @media expressions.
   ===================================================== */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #212529;
  background: #f8f9fa;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.login-shell {
  display: flex;
  min-height: 100vh;
}

.brand-panel {
  flex: 0 0 44%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 3.5rem;
  background: linear-gradient(160deg, #001F3F 0%, #284C62 55%, #3A6D8C 100%);
  overflow: hidden;
  color: #ffffff;
}
.brand-panel::before, .brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: #ffffff;
}
.brand-panel::before {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -200px;
}
.brand-panel::after {
  width: 340px;
  height: 340px;
  bottom: -100px;
  left: -120px;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}
.deco-ring-1 {
  width: 300px;
  height: 300px;
  top: 20%;
  right: -80px;
}
.deco-ring-2 {
  width: 180px;
  height: 180px;
  bottom: 22%;
  left: 10%;
}

.brand-logo {
  position: relative;
  z-index: 1;
}
.brand-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.brand-copy {
  position: relative;
  z-index: 1;
}
.brand-copy h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.brand-copy p {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 320px;
}

.brand-footer {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: #ffffff;
  position: relative;
}

.mobile-copyright {
  display: none;
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.78rem;
  color: #6c757d;
}

.login-card {
  width: 100%;
  max-width: 420px;
}
.login-card__header {
  margin-bottom: 2rem;
}
.login-card__header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #284C62;
  letter-spacing: -0.025em;
  margin-bottom: 0.3rem;
}
.login-card__header p {
  font-size: 0.88rem;
  color: #6c757d;
}

.sso-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-sso {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid #ced4da;
  border-radius: 8px;
  background: #ffffff;
  color: #212529;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
.btn-sso:hover {
  border-color: #60B5EA;
  background: #f5faff;
  box-shadow: 0 2px 8px rgba(58, 109, 140, 0.1);
}
.btn-sso svg, .btn-sso img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ced4da;
}

.field-group {
  margin-bottom: 1.1rem;
}
.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #284C62;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.field-group .field-validation {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #dc3545;
}

.field-input-wrap {
  position: relative;
}
.field-input-wrap .field-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
  display: flex;
}
.field-input-wrap input {
  width: 100%;
  padding: 0.72rem 0.9rem 0.72rem 2.5rem;
  border: 1.5px solid #ced4da;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #212529;
  background: #f8f9fa;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
  -webkit-appearance: none;
}
.field-input-wrap input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}
.field-input-wrap input:focus {
  border-color: #3A6D8C;
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(58, 109, 140, 0.13);
}

.btn-toggle-pw {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #6c757d;
  display: flex;
  transition: color 0.15s;
}
.btn-toggle-pw:hover {
  color: #3A6D8C;
}

.forgot-row {
  text-align: right;
  margin-bottom: 1.4rem;
  margin-top: -0.3rem;
}
.forgot-row a {
  font-size: 0.82rem;
  font-weight: 500;
  color: #3A6D8C;
  text-decoration: none;
  transition: color 0.15s;
}
.forgot-row a:hover {
  color: #284C62;
  text-decoration: underline;
}

.btn-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.78rem 1rem;
  background: #3A6D8C;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
}
.btn-signin:hover {
  background: #284C62;
  box-shadow: 0 4px 14px rgba(40, 76, 98, 0.3);
  transform: translateY(-1px);
}
.btn-signin:active {
  transform: translateY(0);
}

.support-hint {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #6c757d;
}
.support-hint a {
  color: #3A6D8C;
  font-weight: 500;
  text-decoration: none;
}
.support-hint a:hover {
  color: #284C62;
  text-decoration: underline;
}

.error-banner {
  display: none;
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
  color: #dc3545;
}
.error-banner.visible {
  display: block;
}

@media screen and (max-width: 768px) {
  .login-shell {
    flex-direction: column;
  }
  .brand-panel {
    flex: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 6rem;
  }
  .brand-panel::before {
    width: 320px;
    height: 320px;
    top: -100px;
    right: -120px;
  }
  .brand-panel::after {
    display: none;
  }
  .deco-ring {
    display: none;
  }
  .brand-copy h1 {
    font-size: 1.5rem;
    margin: 0;
  }
  .brand-copy p {
    display: none;
  }
  .brand-footer {
    display: none;
  }
  .form-panel {
    padding: 2rem 6.25rem 3rem;
    align-items: flex-start;
  }
  .login-card {
    max-width: 100%;
  }
  .sso-group {
    flex-direction: column;
  }
  .mobile-copyright {
    display: block;
  }
}
@media screen and (max-width: 576px) {
  .brand-panel {
    padding: 1.25rem 1.25rem;
  }
  .brand-logo img {
    height: 38px;
  }
  .brand-copy h1 {
    font-size: 1.25rem;
  }
  .form-panel {
    padding: 2rem 1.5rem 3rem;
  }
  .login-card {
    margin-bottom: 2rem;
  }
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 8px 0;
  border: 1px solid #d9dde3;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.tab-btn.active {
  border-color: #337ab7;
  color: #337ab7;
  font-weight: 600;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.magic-link-sent {
  text-align: center;
  padding: 8px 0;
}