* { box-sizing: border-box; }

.login-page {
  color-scheme: light;
  margin: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 100vh;
  padding: 24px 16px;
  background: #f4f5f7;
  color: #172133;
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
}

.login-card {
  width: min(100%, 440px);
  padding: clamp(22px, 6vw, 34px);
  background: #fff;
  border: 1px solid #e0e4e9;
  border-radius: 18px;
  box-shadow: 0 12px 38px #14264525;
}

.login-card h1 {
  margin: 0 0 20px;
  font-size: clamp(1.38rem, 4vw, 1.75rem);
  line-height: 1.2;
}
.login-notice {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid #d7dfe9;
  border-radius: 8px;
  background: #f0f3f7;
  line-height: 1.45;
}
.login-notice:empty { display: none; }

.login-form { display: grid; gap: 8px; }
.login-form label { font-weight: 650; }
.login-form label:not(:first-of-type) { margin-top: 8px; }
.login-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #a4b2c9;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.login-form input:focus-visible, .login-form button:focus-visible {
  outline: 2px solid #386fd4;
  outline-offset: 2px;
}
.login-form button {
  min-height: 46px;
  margin-top: 13px;
  border: 0;
  border-radius: 8px;
  background: #254777;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.login-form button:hover { background: #1b365d; }
