:root {
  font-family: 'M PLUS Rounded 1c', 'Yu Gothic', sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color: #192b3c;
  background: #fafbfc;
  --green: #008e59;
  --pink: #ff3e6b;
  --line: #dce2e7;
}

* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button, input { font: inherit; color: inherit; touch-action: manipulation; }
:focus-visible { outline: 3px solid #147dba; outline-offset: 3px; }

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 32px 24px;
}
.login-panel {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 35px #15213114;
  overflow-wrap: anywhere;
}
.brand {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 28px;
  color: var(--green);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
}
.brand span { display: inline-block; color: #152131; }
.login-panel h1 { font-size: 26px; line-height: 1.5; }
.login-intro { margin-top: 12px; color: #526272; line-height: 1.8; }
.login-panel form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
.login-panel label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 14px; font-weight: 700; }
.login-panel input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #aebbc6;
  border-radius: 5px;
  background: #fff;
  font-size: 16px;
  font-weight: 400;
}
.login-error { min-height: 24px; color: #b32143; font-size: 14px; line-height: 1.7; }
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 14px 18px;
  margin-bottom: 5px;
  border: 0;
  border-radius: 5px;
  background: var(--pink);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 2px 0 #ff8ca6, 0 5px 0 #ce2851;
  transition: transform .1s, box-shadow .1s;
}
.primary:hover { background: #f53261; }
.primary:active { transform: translateY(3px); box-shadow: inset 0 2px 0 #ff8ca6, 0 2px 0 #ce2851; }
.primary:disabled { background: #a74661; box-shadow: none; cursor: wait; transform: none; }
.admin-entry { margin-top: 28px; }
.login-steps { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.login-steps h2 { font-size: 18px; line-height: 1.6; }
.login-steps ol { margin: 16px 0; padding-left: 24px; }
.login-steps li { padding-left: 4px; line-height: 1.8; }
.login-steps li + li { margin-top: 12px; }
.enrollment-note { color: #526272; font-size: 14px; line-height: 1.8; }

@media (max-width: 520px) {
  .login-page { padding: 24px 16px; }
  .login-panel { padding: 28px 20px; }
  .brand { font-size: 22px; }
  .login-panel h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary { transition: none; }
  .primary:active { transform: none; }
}
