/* ── Login page ── */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: #e9eaed;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Top nav (logo only) ── */
#top_nav {
  background: #375a7f;
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}
#top_nav .nav-inner {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
#top_nav .brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
#top_nav .brand-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin-left: 12px;
  text-decoration: none;
  letter-spacing: .3px;
}

/* ── Page body below fixed nav ── */
.login-page-body {
  padding-top: 52px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}

/* ── Login panel ── */
#loginpanel {
  background-color: #ffffff;
  width: 520px;
  padding: 28px 32px 32px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  margin-top: 16px;
}

/* Logo block inside panel */
.panel-logo-wrap {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
}
.panel-logo-wrap img {
  height: 72px;
  width: auto;
}
.panel-logo-wrap .brand-name {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #375a7f;
  margin-top: 8px;
  letter-spacing: .5px;
}
.panel-logo-wrap .brand-sub {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* Panel header "Log In" */
#lp-header {
  color: #375a7f;
  font-size: 22px;
  font-weight: 500;
  float: left;
  margin-bottom: 10px;
}

.lp-divider-teal {
  width: 100%;
  background: #18bc9c;
  height: 2px;
  margin: 8px 0 22px;
  clear: both;
}

.lp-divider-grey {
  width: 100%;
  background: #e0e0e0;
  height: 1px;
  margin-top: 28px;
}

/* ── Page loading overlay ── */
#page-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
#page-loader.active { display: flex; }
#page-loader .loader-spinner {
  width: 48px; height: 48px;
  border: 5px solid #d0d8e4;
  border-top-color: #375a7f;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
#page-loader .loader-text {
  color: #375a7f;
  font-size: 14px;
  font-weight: 500;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Form */
.login-form .form-label {
  font-weight: 500;
  color: #555;
}
.login-form .col-form-label {
  font-weight: 500;
  color: #555;
}
.login-form .btn-login {
  background-color: #375a7f;
  border-color: #375a7f;
  color: #fff;
  float: right;
  padding: 6px 24px;
  font-size: 14px;
  border-radius: 4px;
  transition: background .15s;
}
.login-form .btn-login:hover {
  background-color: #2e4d6e;
  border-color: #2e4d6e;
  color: #fff;
}

.alert-danger {
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

/* ── Footer ── */
#footer {
  background: #375a7f;
  color: rgba(255,255,255,.6);
  text-align: center;
  font-size: 12px;
  padding: 10px 0;
  width: 100%;
}
