/* Miscellaneous
******************************************************************************* */
.misc-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-block-size: calc(100vh - 1.5rem * 2); /* ?we have added container-p-y class to add padding on top & bottom */
  text-align: center;
}

/* Login Page
******************************************************************************* */
html, body { height: 100%; margin: 0; }

.login-bg {
  min-height: 100vh;
  background: linear-gradient(158deg, #0b1e38 0%, #0d2340 40%, #1a3a5c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Decorative background circles */
.login-bg::before {
  content: '';
  position: absolute;
  top: -120px; left: -100px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.login-bg::after {
  content: '';
  position: absolute;
  bottom: -150px; right: -80px;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  pointer-events: none;
}

/* Modal Overrides */
#loginModal .modal-dialog {
  max-width: 860px;
  width: 100%;
}

#loginModal .modal-content {
  border: 0.5px solid #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .45);
}

/* Remove Bootstrap's default modal backdrop fade so the background shows */
.modal-backdrop {
  display: none !important;
}

body.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

/* Brand Panel (left) */
.login-brand {
  background: linear-gradient(158deg, #0d2340 0%, #1a3a5c 52%, #1e5078 100%);
  color: #fff;
  padding: 3rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 230px; height: 230px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -50px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.login-brand-logo {
  position: relative; z-index: 1;
}

.login-brand-logo img {
  height: 140px;
  width: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}

.login-brand-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .3px;
  margin: 0;
  text-align: center;
  position: relative; z-index: 1;
  color: #fff;
}

.login-brand-divider {
  width: 250px;
  height: 2px;
  background: rgba(255,255,255,.28);
  border-radius: 999px;
  position: relative; z-index: 1;
}

.login-brand-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.78);
  line-height: 1.85;
  margin: 0;
  text-align: center;
  position: relative; z-index: 1;
}

.login-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .78rem;
  position: relative; z-index: 1;
}

/* Form Panel (right) */
.login-form-panel {
  padding: 2.75rem 2.75rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-heading h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: .3rem;
}

.login-form-heading p {
  font-size: .875rem;
  color: #6c757d;
  margin: 0;
}

.login-form-panel .form-label {
  font-size: .84rem;
  font-weight: 600;
  color: #344155;
  margin-bottom: .4rem;
}

.login-form-panel .input-group-text {
  background: #f4f7fb;
  border-color: #d9dfe8;
  color: #8592a3;
  transition: border-color .15s, background .15s, color .15s;
}

.login-form-panel .form-control {
  background: #f4f7fb;
  border-color: #d9dfe8;
  color: #344155;
  transition: background .15s, border-color .15s;
}

.login-form-panel .form-control::placeholder {
  color: #b4bcc8;
}

.login-form-panel .input-group:focus-within .input-group-text {
  border-color: #1a3a5c;
  background: #fff;
  color: #1a3a5c;
}

.login-form-panel .input-group:focus-within .form-control {
  background: #fff;
  border-color: #1a3a5c;
  box-shadow: none;
}

.login-form-panel .input-group:focus-within {
  box-shadow: 0 0 0 .2rem rgba(13, 35, 64, .12);
  border-radius: .375rem;
}

.toggle-pw-btn {
  background: #f4f7fb;
  border-color: #d9dfe8;
  color: #8592a3;
  transition: border-color .15s, background .15s, color .15s;
}

.toggle-pw-btn:hover { color: #1a3a5c; background: #edf1f7; }

.login-form-panel .input-group:focus-within .toggle-pw-btn {
  border-color: #1a3a5c;
  background: #fff;
}

.login-submit-btn {
  background: linear-gradient(135deg, #0d2340 0%, #1a3a5c 100%);
  border: 0;
  padding: .7rem 1rem;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: .5rem;
  transition: opacity .15s, box-shadow .15s;
}

.login-submit-btn:hover,
.login-submit-btn:focus {
  opacity: .9;
  box-shadow: 0 8px 24px rgba(13, 35, 64, .3);
}

.login-footer {
  margin-top: 1.5rem;
  padding-top: .9rem;
  border-top: 1px solid #edf0f4;
  text-align: center;
}

/* Responsive */
@media (max-width: 991.98px) {
  .login-brand { display: none; }
  .login-form-panel { padding: 2.5rem 2rem; }
}

@media (max-width: 575.98px) {
  #loginModal .modal-dialog { margin: .75rem; }
  .login-form-panel { padding: 2rem 1.25rem; }
}
