/* DSSC Learning Resource Center — Staff login UI
   Scoped to body.dssc-staff-auth. No OPAC banner assets. */

:root {
  --dssc-blue-900: #0b2b4b;
  --dssc-blue-800: #103a63;
  --dssc-blue-700: #154a7a;
  --dssc-accent: #8b1530;
  --dssc-accent-light: #a91d3d;
  --dssc-surface: #ffffff;
  --dssc-muted: #64748b;
  --dssc-border: rgba(16, 24, 40, 0.1);
  --dssc-shadow: 0 22px 48px rgba(11, 43, 75, 0.14);
  --dssc-radius: 18px;
}

body.dssc-staff-auth {
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.dssc-staff-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.dssc-staff-login-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--dssc-surface);
  border: 1px solid var(--dssc-border);
  border-radius: calc(var(--dssc-radius) + 6px);
  box-shadow: var(--dssc-shadow);
  overflow: hidden;
}

/* ---- Institutional brand panel (typography only) ---- */
.dssc-staff-login-brand {
  position: relative;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(139, 21, 48, 0.92) 0%, rgba(139, 21, 48, 0.72) 18%, transparent 18%),
    linear-gradient(160deg, var(--dssc-blue-900) 0%, var(--dssc-blue-800) 55%, #0a2540 100%);
  display: flex;
  align-items: stretch;
}

.dssc-staff-login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 35%),
    repeating-linear-gradient(
      -35deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 12px
    );
  pointer-events: none;
}

.dssc-staff-login-brand__inner {
  position: relative;
  z-index: 1;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.dssc-staff-login-brand__seal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.dssc-staff-login-brand__kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.dssc-staff-login-brand__title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 16ch;
}

.dssc-staff-login-brand__subtitle {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.dssc-staff-login-brand__text {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  line-height: 1.6;
  max-width: 36ch;
}

.dssc-staff-login-brand__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dssc-staff-login-brand__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.dssc-staff-login-brand__features i {
  width: 1.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

/* ---- Login panel ---- */
.dssc-staff-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  background: #fff;
}

.dssc-staff-login-card,
#login.dssc-staff-login-card {
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: static;
}

.dssc-staff-login-card__header {
  margin-bottom: 20px;
  text-align: center;
}

.dssc-staff-login-card__logo {
  display: block;
  width: auto;
  max-width: 120px;
  height: auto;
  margin: 0 auto 12px;
}

.dssc-staff-login-card__title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--dssc-blue-900);
}

.dssc-staff-login-card__subtitle {
  margin: 8px 0 0;
  color: var(--dssc-muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

#login #login_error,
#login .alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #991b1b;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 12px 14px;
  text-align: left;
  text-shadow: none;
  filter: none;
}

#login #login_error a:link,
#login #login_error a:visited {
  color: #b91c1c;
}

#login label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

#login form p {
  margin-bottom: 14px;
}

#login .form-control,
#login .form-select,
#login input[type="text"],
#login input[type="password"],
#login select {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  font-size: 1rem;
  padding: 10px 12px;
}

#login input[type="text"],
#login input[type="password"] {
  font-size: 1rem;
}

#login .form-control:focus,
#login .form-select:focus,
#login input:focus,
#login select:focus {
  border-color: rgba(16, 58, 99, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(16, 58, 99, 0.12);
  outline: none;
}

#login .submit {
  text-align: stretch;
  margin-top: 6px;
}

.dssc-staff-login-submit,
#submit-button.dssc-staff-login-submit,
#submit-button {
  width: 100%;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 800;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--dssc-blue-800), var(--dssc-blue-900));
  border: none;
  color: #fff;
  box-shadow: none;
}

.dssc-staff-login-submit:hover,
.dssc-staff-login-submit:focus,
#submit-button:hover,
#submit-button:focus {
  filter: brightness(1.05);
  background: linear-gradient(135deg, var(--dssc-blue-700), var(--dssc-blue-900));
  border: none;
  box-shadow: 0 10px 24px rgba(11, 43, 75, 0.2);
}

#login hr {
  margin: 18px 0;
  border-color: rgba(16, 24, 40, 0.1);
}

#login .btn-light {
  border-radius: 11px;
  font-weight: 700;
  border: 1px solid var(--dssc-border);
}

#login .warning {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--dssc-muted);
  line-height: 1.4;
}

.dssc-staff-login-card__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  text-align: center;
}

.dssc-staff-login-card__footer a {
  color: var(--dssc-blue-800);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.dssc-staff-login-card__footer a:hover {
  color: var(--dssc-accent);
  text-decoration: underline;
}

#StaffLoginInstructions .page-section {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(16, 24, 40, 0.08);
  font-size: 0.92rem;
  text-align: center;
}

#StaffLoginInstructions img {
  display: none;
}

#StaffLoginInstructions hr {
  display: none;
}

#StaffLoginInstructions h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dssc-blue-900);
}

@media (max-width: 991.98px) {
  .dssc-staff-login-shell {
    grid-template-columns: 1fr;
  }

  .dssc-staff-login-brand__inner {
    padding: 28px 22px 26px;
  }

  .dssc-staff-login-brand__title {
    max-width: none;
  }

  .dssc-staff-login-brand__features {
    display: none;
  }

  .dssc-staff-login-panel {
    padding: 26px 20px 30px;
  }
}

@media (max-width: 575.98px) {
  .dssc-staff-login-page {
    padding: 16px 12px;
  }

  .dssc-staff-login-shell {
    border-radius: 14px;
  }
}
