:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #192d34;
  background: #eef5f3;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 15% 10%, #d3e9e3, transparent 64%), #eef5f3;
  padding: 24px 16px;
}
.login-card {
  width: min(100%, 432px);
  border-radius: 18px;
  background: #fff;
  border: 1px solid #d9e4e0;
  padding: clamp(24px, 6vw, 40px);
  box-shadow: 0 20px 48px #1c454015;
}
.brand { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 650; color: #1f5149; }
.brand span { position: relative; width: 28px; height: 28px; border-radius: 8px; background: #a0deca; }
.brand span::after { content: ""; position: absolute; inset: 8px; border: 2px solid #20564b; border-radius: 3px; transform: rotate(45deg); }
h1 { font-size: clamp(1.85rem, 7vw, 2.2rem); line-height: 1.25; margin: 24px 0; }
form { display: grid; gap: 8px; }
label { font-weight: 600; }
input, button { font: inherit; }
input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid #becdc8;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #192d34;
}
#username { margin-bottom: 8px; }
.password-field { display: flex; gap: 6px; }
.password-field input { flex: 1; }
.password-field button { border: 1px solid #becdc8; border-radius: 8px; background: #f5f9f8; color: #1f5149; padding-inline: 12px; }
button { cursor: pointer; }
.submit { margin-top: 12px; min-height: 47px; border: 0; border-radius: 8px; background: #176c58; color: white; font-weight: 650; }
.submit:hover { background: #125844; }
.submit:disabled { opacity: .72; cursor: wait; }
:focus-visible { outline: 2px solid #177860; outline-offset: 2px; }
#login-error { color: #842d30; background: #fff1f0; border-radius: 6px; margin: 6px 0 0; padding: 9px 10px; }
noscript { margin-top: 10px; color: #526968; }
