:root {
  --psc-ink: #071421;
  --psc-navy: #040f1a;
  --psc-blue: #1d618c;
  --psc-blue-soft: #b8d8e9;
  --psc-mint: #69d6a1;
  --psc-mint-dark: #246958;
  --psc-white: #ffffff;
}

body.task-login {
  min-height: 100%;
  color: var(--psc-ink);
  background:
    linear-gradient(115deg, rgba(4, 15, 26, 0.93) 0%, rgba(7, 20, 33, 0.78) 48%, rgba(29, 97, 140, 0.42) 100%),
    url("../images/school-wide.jpg") center / cover fixed no-repeat;
}

body.task-login::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(105, 214, 161, 0.15), transparent 30%),
    linear-gradient(180deg, transparent 68%, rgba(4, 15, 26, 0.48));
}

.task-login #layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  overflow: auto;
}

.task-login #layout-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, 0.75fr);
  align-items: stretch;
  width: min(1120px, calc(100% - 48px));
  min-height: 640px;
  margin: auto;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: rgba(7, 20, 33, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.psc-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(44px, 7vw, 84px);
  color: var(--psc-white);
  overflow: hidden;
}

.psc-brand-panel::after {
  position: absolute;
  right: -110px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  content: "";
  border: 1px solid rgba(184, 216, 233, 0.26);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(184, 216, 233, 0.06), 0 0 0 78px rgba(105, 214, 161, 0.04);
}

.task-login #logo {
  position: static;
  top: auto;
  z-index: 1;
  display: block;
  width: 82px;
  height: 82px;
  max-height: none;
  margin: 0 0 38px;
}

.psc-brand-copy,
.psc-location {
  position: relative;
  z-index: 1;
}

.psc-eyebrow,
.psc-form-kicker {
  margin: 0 0 14px;
  color: var(--psc-mint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.psc-brand-copy h2 {
  max-width: 650px;
  margin: 0;
  color: var(--psc-white);
  font-size: clamp(2.15rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.psc-intro {
  max-width: 530px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.65;
}

.psc-location {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 48px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.psc-location > span:first-child {
  color: var(--psc-mint);
  font-size: 0.6rem;
}

#login-form {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  max-width: none;
  margin: 0;
  padding: clamp(38px, 5vw, 64px);
  color: var(--psc-ink);
  background: rgba(255, 255, 255, 0.97);
}

.psc-form-heading {
  margin-bottom: 32px;
}

.psc-form-heading h2 {
  margin: 0 0 10px;
  color: var(--psc-ink);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.psc-form-heading > p:last-child {
  margin: 0;
  color: #60717a;
  line-height: 1.55;
}

#login-form .row {
  margin-bottom: 18px;
}

#login-form label {
  margin-bottom: 7px;
  color: #334a57;
  font-size: 0.86rem;
  font-weight: 700;
}

#login-form .form-control {
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  color: var(--psc-ink);
  background: #f6f9fa;
  border: 1px solid #d7e1e5;
  border-radius: 11px;
  box-shadow: none;
}

#login-form .form-control:focus {
  background: var(--psc-white);
  border-color: var(--psc-blue);
  box-shadow: 0 0 0 3px rgba(29, 97, 140, 0.14);
}

#login-form .formbuttons {
  margin-top: 8px;
}

#login-form .btn-primary {
  min-height: 48px;
  color: var(--psc-white);
  font-weight: 700;
  background: var(--psc-blue);
  border-color: var(--psc-blue);
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(29, 97, 140, 0.2);
}

#login-form .btn-primary:hover,
#login-form .btn-primary:focus {
  background: #154e73;
  border-color: #154e73;
}

.psc-login-help {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 24px;
  color: #71828a;
  font-size: 0.84rem;
}

.psc-login-help a,
#login-footer a {
  color: var(--psc-blue);
  font-weight: 700;
}

#login-footer {
  flex: 0 0 auto;
  margin-top: 36px;
  padding-top: 20px;
  color: #819097;
  font-size: 0.78rem;
  border-top: 1px solid #e5ecef;
}

#login-footer > div {
  display: none;
}

html.dark-mode body.task-login #layout-content,
html.dark-mode #login-form {
  background: rgba(255, 255, 255, 0.97);
}

@media (max-width: 820px) {
  .task-login #layout-content {
    grid-template-columns: 1fr;
    width: min(520px, calc(100% - 28px));
    min-height: auto;
    margin: 28px auto;
    border-radius: 22px;
  }

  .psc-brand-panel {
    min-height: 230px;
    padding: 34px;
  }

  .task-login #logo {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
  }

  .psc-brand-copy h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .psc-intro,
  .psc-location {
    display: none;
  }

  #login-form {
    padding: 36px 30px;
  }
}

@media (max-width: 420px) {
  .task-login #layout-content {
    width: calc(100% - 20px);
    margin: 10px auto;
    border-radius: 18px;
  }

  .psc-brand-panel {
    min-height: 190px;
    padding: 26px;
  }

  .psc-eyebrow {
    margin-bottom: 9px;
    font-size: 0.68rem;
  }

  #login-form {
    padding: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
