:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172b33;
  background: #f5f7f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 10% 10%, rgba(193, 219, 224, .34), transparent 42%),
    radial-gradient(ellipse at 95% 90%, rgba(220, 222, 236, .42), transparent 38%),
    #f5f7f8;
}

.login-shell { width: min(100%, 420px); }

.login-card {
  padding: 42px 40px 30px;
  border: 1px solid rgba(217, 225, 229, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(34, 56, 65, .10);
}

.lock-mark {
  position: relative;
  width: 42px;
  height: 42px;
  margin-bottom: 27px;
  border-radius: 14px;
  background: #edf3f5;
}

.lock-mark::before {
  position: absolute;
  top: 10px;
  left: 13px;
  width: 14px;
  height: 12px;
  border: 2px solid #5e7984;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  content: "";
}

.lock-mark span {
  position: absolute;
  top: 20px;
  left: 11px;
  width: 20px;
  height: 14px;
  border-radius: 4px;
  background: #5e7984;
}

.eyebrow {
  margin: 0 0 8px;
  color: #748991;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.035em; }
.intro { margin: 10px 0 29px; color: #75858b; font-size: 14px; }
label { display: block; margin-bottom: 9px; color: #40545c; font-size: 12px; font-weight: 600; }

.password-wrap { position: relative; }

input {
  width: 100%;
  height: 48px;
  padding: 0 68px 0 14px;
  border: 1px solid #d9e2e5;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #172b33;
  font: inherit;
  font-size: 15px;
  transition: border-color .16s, box-shadow .16s;
}

input:focus { border-color: #7f9da7; box-shadow: 0 0 0 3px rgba(127, 157, 167, .15); }

.visibility-toggle {
  position: absolute;
  top: 0;
  right: 5px;
  height: 48px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #71868d;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.login-error { min-height: 20px; margin: 8px 0 4px; color: #a33e42; font-size: 12px; }

.submit-button {
  width: 100%;
  height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 11px;
  background: #263f49;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .15s, background .15s;
}

.submit-button:hover { transform: translateY(-1px); background: #1d343d; }
.submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.footnote { margin: 24px 0 0; color: #9aa8ad; text-align: center; font-size: 11px; }

@media (max-width: 480px) {
  body { padding: 16px; }
  .login-card { padding: 34px 26px 25px; border-radius: 20px; }
}
