/* Clean layout with only logo above input box */
:root{
  --text:#e9edf2;
  --text-dim:#a8b0ba;
  --primary:#4f8cff;
  --primary-press:#2f6ff3;
  --line:#2a2e34;
  --panel: rgba(18,20,24,0.6);
  --radius:14px;
}
*{box-sizing:border-box}
html,body{height:100%; overflow-x:hidden; overflow-y:auto}
body{
  margin:0;
  background:#0b0c0e;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',Inter,Roboto,Arial,sans-serif;
}
.bg{
  position:fixed; inset:0;
  /* 顶部对齐，整屏铺满 */
  background: url('assets/bg.png') top center / cover no-repeat;
}
.wrap{
  position:relative;
  min-height:100dvh; /* 动态视窗高度，消除上下留黑 */
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 16px 24px; /* 减少内边距，配合安全区由 global/mobile 修正 */
  background: rgba(0,0,0,0.35);
}
.login-side{
  width:min(520px, 92vw);
  display:flex; flex-direction:column; gap:18px;
}
.logo-wrap{display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:10px}
.logo{width:84px; height:auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));}

.form{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:24px;
  backdrop-filter: blur(8px) saturate(120%);
}
.field{margin-bottom:14px}
.field input{
  width:100%; height:48px; border-radius:12px; border:1px solid var(--line);
  background: rgba(255,255,255,0.02); color:var(--text); padding:0 12px; outline:none;
}
.field input::placeholder{color:#8a93a0}
.field input:focus{border-color:#3a75ff; box-shadow:0 0 0 3px rgba(63,117,255,.2)}
.row{display:flex; gap:10px}
.btn{
  height:48px; border-radius:12px; border:1px solid transparent; cursor:pointer; font-weight:600;
}
.btn.primary{width:100%; background:var(--primary); color:#fff; margin:6px 0 10px}
.btn.primary:active{background:var(--primary-press)}
.btn.ghost{padding:0 12px; background:transparent; color:var(--text); border-color:var(--line)}
.btn.ghost:active{background: rgba(255,255,255,0.05)}

.agree{display:flex; align-items:flex-start; gap:8px; color:var(--text-dim); font-size:13px}
.agree a{color:#9fb9ff; text-decoration:none}
.agree a:hover{text-decoration:underline}
.hint{min-height:20px; color:#9fb9ff; font-size:13px; margin:4px 0 0}

@media (max-width: 960px){
  .wrap{justify-content:center; padding:20px; background: rgba(0,0,0,0.4)}
  .logo-wrap{align-items:center; text-align:center}
  .login-side{width:min(520px, 92vw)}
}


/* center variant for login logo */
.logo-wrap.center{align-items:center;text-align:center;margin-bottom:8px}
.logo-wrap.center .logo{width:108px;height:auto}
