.login-page{
  --login-bg:#f8fafc;
  --login-card:rgba(255,255,255,.92);
  --login-text:#0f172a;
  --login-muted:#64748b;
  --login-line:#dbe3ee;
  --login-primary:#3b82f6;
  --login-primary-dark:#2563eb;
  --login-shadow1:0 30px 60px rgba(15,23,42,.14);
  --login-shadow2:0 10px 24px rgba(15,23,42,.08);
  --login-radius:28px;

  min-height:100vh;
  margin:0;
  font-family:"Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--login-text);
  background:var(--login-bg);
  overflow:hidden;
  position:relative;
}

.login-page *,
.login-page *::before,
.login-page *::after{
  box-sizing:border-box;
}

.login-page .login-bg{
  position:fixed;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(248,250,252,.90) 0%,
      rgba(248,250,252,.76) 26%,
      rgba(248,250,252,.18) 52%,
      rgba(248,250,252,.06) 100%
    ),
    url('../img/login-bg.jpg') center center / cover no-repeat;
  z-index:0;
}

.login-page .campus-badge{
  position:fixed;
  top:46px;
  right:54px;
  z-index:3;
  text-align:right;
  color:#1e3a8a;
  font-weight:900;
  font-size:15px;
  line-height:1.35;
  letter-spacing:1px;
  text-transform:uppercase;
  text-shadow:0 1px 2px rgba(255,255,255,.45);
}

.login-page .login-shell{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:40px 56px;
}

.login-page .login-panel{
  width:100%;
  max-width:430px;
}

.login-page .login-card{
  background:var(--login-card);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.72);
  border-radius:var(--login-radius);
  box-shadow:var(--login-shadow1), var(--login-shadow2);
  padding:28px 30px 24px;
}

.login-page .logo-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.login-page .logo-item{
  width:56px;
  height:56px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 6px 18px rgba(15,23,42,.08);
}

.login-page .logo-item img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.login-page .brand{
  text-align:center;
  margin-bottom:18px;
}

.login-page .brand h1{
  margin:0;
  font-size:28px;
  font-weight:900;
  color:#1e3a8a;
  letter-spacing:1.8px;
  text-transform:uppercase;
  line-height:1.1;
}

.login-page .brand p{
  margin:6px 0 0;
  font-size:10.5px;
  font-weight:800;
  color:#334155;
  letter-spacing:.7px;
  text-transform:uppercase;
  line-height:1.4;
  white-space:nowrap;
}

.login-page .err{
  margin-bottom:12px;
  padding:12px 14px;
  border-radius:14px;
  font-size:13px;
  font-weight:800;
  border:1px solid #fecaca;
  background:#fef2f2;
  color:#991b1b;
  min-height:45px;
  display:flex;
  align-items:center;
}

.login-page .err.empty{
  visibility:hidden;
  min-height:0;
  padding:0;
  margin:0 0 10px 0;
  border:none;
  background:transparent;
}

.login-page .field{
  margin-bottom:10px;
}

.login-page .input-wrap{
  position:relative;
}

.login-page .icon-left{
  position:absolute;
  top:50%;
  left:14px;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  color:#6b7280;
  opacity:.95;
  pointer-events:none;
}

.login-page .toggle-pass{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border:none;
  background:transparent;
  padding:0;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#475569;
  border-radius:8px;
}

.login-page .toggle-pass:hover{
  background:#eff6ff;
  color:#1d4ed8;
}

.login-page .toggle-pass svg{
  width:18px;
  height:18px;
}

.login-page input[name="username"],
.login-page input[name="password"]{
  width:100%;
  height:46px;
  border:1px solid var(--login-line);
  border-radius:12px;
  background:#fff;
  outline:none;
  padding:0 42px 0 42px;
  font-size:14px;
  font-weight:600;
  color:#0f172a;
  margin:0;
  transition:.18s ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}

.login-page input[name="username"]::placeholder,
.login-page input[name="password"]::placeholder{
  color:#8b95a7;
  font-weight:500;
}

.login-page input[name="username"]:focus,
.login-page input[name="password"]:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 4px rgba(59,130,246,.12);
  background:#fff;
}

.login-page .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:8px 0 14px;
}

.login-page .remember{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  color:#475569;
}

.login-page .remember input[type="checkbox"]{
  width:16px;
  height:16px;
  accent-color:#3b82f6;
  margin:0;
}

.login-page .forgot{
  color:#2563eb;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}

.login-page .forgot:hover{
  color:#1d4ed8;
  text-decoration:none;
}

.login-page button[type="submit"]{
  width:100%;
  height:46px;
  border:none;
  border-radius:12px;
  background:linear-gradient(180deg, #4f83ee, #3b6fdd);
  color:#fff;
  font-size:16px;
  font-weight:900;
  letter-spacing:.2px;
  cursor:pointer;
  transition:.16s ease;
  box-shadow:0 12px 24px rgba(37,99,235,.22);
}

.login-page button[type="submit"]:hover{
  background:linear-gradient(180deg, #4178eb, #2f61cf);
  transform:translateY(-1px);
}

.login-page button[type="submit"]:active{
  transform:translateY(0) scale(.99);
}

.login-page .small{
  margin-top:14px;
  text-align:center;
  color:#475569;
  font-size:12px;
  font-weight:700;
  line-height:1.55;
  white-space:nowrap;
}

.login-page .divider{
  margin:14px 0 12px;
  height:1px;
  background:linear-gradient(90deg, transparent, #dbe3ee, transparent);
}

.login-page .help{
  text-align:center;
  font-size:12px;
  color:#64748b;
  font-weight:700;
}

.login-page .help a{
  color:#2563eb;
  font-weight:800;
  text-decoration:none;
}

.login-page .help a:hover{
  color:#1d4ed8;
  text-decoration:none;
}

@media (max-width:1100px){
  .login-page .campus-badge{
    top:28px;
    right:28px;
    font-size:13px;
  }

  .login-page .login-shell{
    padding:30px 30px;
  }
}

@media (max-width:768px){
  .login-page{
    overflow:auto;
  }

  .login-page .campus-badge{
    position:relative;
    top:auto;
    right:auto;
    text-align:center;
    padding:24px 20px 0;
    font-size:12px;
  }

  .login-page .login-shell{
    min-height:auto;
    display:block;
    padding:14px 16px 28px;
  }

  .login-page .login-panel{
    max-width:100%;
    margin:16px auto 0;
  }

  .login-page .login-card{
    padding:24px 20px 22px;
    border-radius:22px;
  }

  .login-page .logo-item{
    width:50px;
    height:50px;
  }

  .login-page .brand{
    margin-bottom:16px;
  }

  .login-page .brand h1{
    font-size:24px;
  }

  .login-page .brand p{
    font-size:9.5px;
    letter-spacing:.3px;
    white-space:normal;
  }

  .login-page .small{
    white-space:normal;
  }

  .login-page .row{
    flex-direction:column;
    align-items:flex-start;
  }
}