
:root {
  --maroon: #7b1024;
  --maroon-dark: #560b1b;
  --ink: #26272c;
  --muted: #626574;
  --border: #dfe1e6;
  --surface: #fff;
}

* {
  box-sizing: border-box;
}

body.unified-login-page {
  margin: 0;
  font-family: Arial, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7f7f9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--maroon);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(440px, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 38px clamp(24px, 5vw, 80px);
  background: linear-gradient(
      155deg,
      rgba(75, 8, 25, .98),
      rgba(123, 16, 36, .95)
  );
  color: #fff;
}

.home-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.home-back:hover,
.intro-shortcuts a:hover {
  text-decoration: underline;
}

.intro-center {
  max-width: 570px;
  margin: 45px auto;
}

.school-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 20px;
}

.intro-overline {
  letter-spacing: .13em;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: #f4cbd4;
}

.login-intro h1 {
  font-size: clamp(30px, 3.3vw, 49px);
  line-height: 1.17;
  margin: 12px 0 20px;
  letter-spacing: -.025em;
}

.intro-description {
  font-size: 17px;
  line-height: 1.65;
  color: #f8e5e9;
  max-width: 510px;
}

.intro-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.intro-shortcuts a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  padding: 12px 14px;
  font-size: 14px;
}

.intro-footer {
  font-size: 12px;
  color: #eed0d9;
  margin: 0;
}

.login-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px clamp(18px, 4vw, 60px);
}

.login-panel {
  width: 100%;
  max-width: 448px;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 20px;
  padding: clamp(24px, 3.3vw, 42px);
  box-shadow: 0 16px 50px rgba(26, 24, 34, .055);
}

.panel-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--maroon);
  margin-bottom: 6px;
}

.login-panel h2 {
  font-size: 29px;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin: 6px 0 9px;
}

.panel-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 26px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 9px;
  color: #343740;
}

.field input,
.field select {
  height: 47px;
  width: 100%;
  border: 1px solid #cdd0d7;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(123, 16, 36, .12);
}

.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

.select-wrap,
.password-wrap {
  position: relative;
}

.select-wrap i {
  pointer-events: none;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b6e7b;
  font-size: 12px;
}

.role-description {
  font-size: 12px;
  color: #777987;
  line-height: 1.5;
  margin: -9px 0 20px;
}

.field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-top a {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 9px;
  white-space: nowrap;
}

.field-top a:hover,
.below-login a:hover,
.alumni-register-link a:hover {
  text-decoration: underline;
}

.password-wrap input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 35px;
  height: 35px;
  border: 0;
  background: transparent;
  color: #626574;
  border-radius: 7px;
  cursor: pointer;
}

.password-toggle:hover {
  background: #f6f2f4;
}

.submit-login {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  background: var(--maroon);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background .15s;
}

.submit-login:hover {
  background: var(--maroon-dark);
}

.submit-login:focus-visible,
.password-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid #ee9eae;
  outline-offset: 2px;
}

.login-alert,
.resubmit-alert {
  margin-bottom: 18px;
  border: 1px solid #f2c5c5;
  background: #fff4f3;
  color: #872631;
  border-radius: 9px;
  padding: 13px;
  font-size: 13px;
  line-height: 1.55;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.resubmit-alert {
  border-color: #eacfa3;
  background: #fffaf1;
  color: #533d16;
}

.resubmit-alert p {
  margin: 8px 0;
}

.resubmit-alert a {
  font-weight: 700;
  color: var(--maroon);
}

.alumni-register-link {
  text-align: center;
  margin: 19px 0 0;
  font-size: 13px;
  color: #5e6170;
}

.alumni-register-link[hidden] {
  display: none;
}

.alumni-register-link a {
  font-weight: 700;
  text-decoration: none;
}

.below-login {
  border-top: 1px solid #ececf0;
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.below-login a {
  font-size: 13px;
  color: #676978;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 850px) {
  .login-layout {
      grid-template-columns: 1fr;
  }

  .login-intro {
      padding: 25px 22px;
      gap: 10px;
  }

  .intro-center {
      margin: 12px auto 5px;
      text-align: center;
  }

  .school-logo {
      width: 70px;
      height: 70px;
      margin-bottom: 5px;
  }

  .login-intro h1 {
      font-size: 27px;
      max-width: 510px;
  }

  .intro-description {
      font-size: 14px;
      margin: 0 auto;
  }

  .intro-shortcuts {
      justify-content: center;
      margin-top: 18px;
      gap: 9px;
  }

  .intro-shortcuts a {
      font-size: 12px;
      padding: 10px;
  }

  .intro-footer {
      display: none;
  }

  .login-area {
      padding: 20px 15px 35px;
  }

  .login-panel {
      max-width: 510px;
      padding: 28px;
  }
}

@media (max-width: 420px) {
  .login-intro h1 {
      font-size: 23px;
  }

  .login-panel {
      padding: 24px 18px;
  }

  .login-panel h2 {
      font-size: 25px;
  }

  .below-login {
      gap: 13px;
  }
}


/* =========================================
   UNIFIED LOGIN - CENTERED FORM ONLY
   Recommendation #1
========================================= */

/* Remove the left school information panel */
.login-intro {
  display: none !important;
}

/* Use the entire screen for the login page */
.login-layout {
  display: block !important;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Center the login form */
.login-area {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 35px 20px;
  background: #f7f7f9;
}

/* Login card design */
.login-panel {
  width: 100%;
  max-width: 450px;
  padding: 35px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #ececf0;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* Keep the school website link below */
.below-login {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #ececf0;
}

/* Responsive for phones */
@media (max-width: 600px) {
  .login-area {
      padding: 20px 15px;
  }

  .login-panel {
      max-width: 100%;
      padding: 25px 20px;
      border-radius: 14px;
  }
}
