* { box-sizing: border-box; }

html,
body { min-height: 100%; margin: 0; }

body.student-login-page {
  min-height: 100vh;
  min-height: 100svh;
  color: #071a37;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: #e8eef7;
}

.login-stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 36px 20px;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 3% 10%, rgba(255,255,255,.75), transparent 40%),
    radial-gradient(ellipse at 100% 100%, rgba(0,50,98,.10), transparent 44%),
    linear-gradient(135deg, #f5f8fc 0%, #e8eef7 52%, #dce6f2 100%);
}

.login-stage::before,
.login-stage::after {
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(0,50,98,.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.login-stage::before { top: -190px; left: -115px; }
.login-stage::after { right: -205px; bottom: -215px; width: 440px; height: 440px; }

.login-card {
  width: min(100%, 500px);
  padding: 39px 40px 35px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 33, 69, .13);
  animation: login-card-in .55s cubic-bezier(.2,.75,.25,1) both;
}

.login-logo {
  display: flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform .2s ease;
}

.login-logo:hover { transform: translateY(-2px); }
.login-logo img { display: block; width: 225px; max-width: 100%; height: auto; }

.login-card h1 {
  margin: 0 0 37px;
  color: #53637b;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.login-form { display: flex; flex-direction: column; gap: 17px; }
.login-field { display: flex; flex-direction: column; gap: 7px; }

.login-field label {
  color: #071a37;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.login-input-wrap {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid #d9dee7;
  border-radius: 11px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-input-wrap:focus-within {
  border-color: #002676;
  box-shadow: 0 0 0 3px rgba(0,38,118,.09);
  transform: translateY(-1px);
}

.login-input-wrap.is-invalid {
  border-color: #b00020;
  box-shadow: 0 0 0 3px rgba(176,0,32,.08);
}

.login-input-wrap svg { width: 17px; height: 17px; flex: 0 0 17px; fill: #8795aa; }

.login-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17243a;
  font: inherit;
  font-size: 14px;
}

.login-input-wrap input::placeholder { color: #687992; opacity: 1; }
.login-input-wrap input:focus-visible { outline: 0; }

.login-error {
  display: none;
  margin: -11px 0 -4px;
  color: #c62828;
  font-size: 12px;
  line-height: 1.4;
}

.login-error.is-visible { display: block; animation: login-error-in .2s ease both; }

.login-submit {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: -1px;
  border: 0;
  border-radius: 10px;
  background: #003262;
  box-shadow: 0 8px 18px rgba(0, 50, 98, .19);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.login-submit:hover {
  transform: translateY(-2px);
  background: #002145;
  box-shadow: 0 12px 22px rgba(0, 33, 69, .25);
}

.login-submit:active { transform: translateY(0); }
.login-submit:focus-visible { outline: 3px solid rgba(0,38,118,.35); outline-offset: 3px; }
.login-submit svg { width: 17px; height: 17px; fill: currentColor; }

@keyframes login-card-in {
  from { opacity: 0; transform: translateY(13px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes login-error-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
  .login-stage { padding: 22px 16px; }
  .login-card { padding: 32px 24px 28px; border-radius: 19px; }
  .login-card h1 { margin-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
