.login-page{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 20px;
}
.login-card{
  width:100%;
  max-width:420px;
  padding:36px 38px 32px;
  border-radius:var(--radius);
  border:1px solid var(--stroke-strong);
  background:var(--panel);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  box-shadow:var(--shadow);
}
.login-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:28px;
}
.login-brand .logo{
  width:44px;
  height:44px;
  border-radius:11px;
  background:#fff;
  flex-shrink:0;
  overflow:hidden;
  display:grid;
  place-items:center;
  border:1px solid var(--stroke-strong);
  box-shadow:0 4px 14px -6px rgba(15,23,42,0.12);
}
.login-brand .logo img{width:100%;height:100%;object-fit:contain;display:block}
.login-brand-text{min-width:0}
.login-brand-name{font-size:16px;font-weight:800;letter-spacing:-.02em;line-height:1.2;color:var(--txt)}
.login-brand-sub{font-size:11px;font-weight:600;color:var(--muted-2);margin-top:3px;line-height:1.3}
.login-head{margin-bottom:24px}
.login-head h1{font-size:22px;font-weight:800;letter-spacing:-.4px;margin-bottom:6px;color:var(--txt)}
.login-head p{font-size:14px;color:var(--muted);font-weight:500;line-height:1.45}
.login-field{margin-bottom:16px}
.login-field label{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:7px;letter-spacing:.02em}
.login-field input{
  display:block;
  width:100%;
  height:46px;
  padding:0 14px;
  background:var(--bg-2);
  border:1px solid var(--stroke-strong);
  border-radius:12px;
  color:var(--txt);
  font-family:inherit;
  font-size:15px;
  font-weight:500;
  outline:none;
  transition:border-color .18s,box-shadow .18s,background .18s;
  -webkit-appearance:none;
}
.login-field input::placeholder{color:var(--muted-2);opacity:.85}
.login-field input:focus{
  border-color:rgba(108,139,255,.55);
  box-shadow:0 0 0 3px rgba(108,139,255,.14);
  background:var(--panel-solid);
}
.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px var(--bg-2) inset!important;
  -webkit-text-fill-color:var(--txt)!important;
  caret-color:var(--txt);
  transition:background-color 9999s ease-out 0s;
}
.login-btn{
  width:100%;
  margin-top:8px;
  justify-content:center;
  font-size:15px;
  font-weight:800;
  letter-spacing:.01em;
}
html[data-theme="dark"] .login-btn{
  color:#0a0a0b;
  background:linear-gradient(135deg,#f2f2f4,#d8d8dc);
  box-shadow:0 10px 28px -10px rgba(255,255,255,.35);
}
html[data-theme="dark"] .login-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 32px -10px rgba(255,255,255,.42);
}
html[data-theme="dark"] .login-btn:disabled{
  opacity:.65;
  transform:none;
}
.login-error{
  display:none;
  margin-top:14px;
  padding:12px 14px;
  border-radius:11px;
  border:1px solid rgba(255,93,115,.28);
  background:var(--red-bg);
  color:var(--red);
  font-size:13px;
  font-weight:650;
  line-height:1.4;
}
.login-error.show{display:block}
.login-theme{
  position:fixed;
  top:16px;
  right:16px;
  z-index:2;
  height:36px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid var(--stroke-strong);
  background:var(--panel);
  color:var(--muted);
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  backdrop-filter:blur(12px);
  transition:.15s;
}
.login-theme:hover{color:var(--txt);border-color:rgba(108,139,255,.35)}
