:root {
  --blue: #1464c0;
  --text: #29313b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.6;
}

.site-header, .site-footer {
  background: var(--blue);
  color: #fff;
}

.header-inner {
  max-width: 1120px;
  margin: auto;
  padding: 18px 20px;
  font-size: 21px;
  font-weight: 700;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.login-card {
  width: 100%;
  max-width: 480px;
  padding: 28px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 6%);
}

h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.4; }
.description { margin: 0 0 28px; font-size: 15px; }
.field + .field { margin-top: 20px; }

input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 12px 14px;
  border: 1px solid #b8c1cc;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

input::placeholder { color: #747d89; opacity: 1; }

button {
  width: 100%;
  min-height: 52px;
  margin-top: 28px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

button:hover { background: #10539f; }
a { text-underline-offset: 4px; }
a:hover { text-decoration: underline; }

.forgot-password {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  padding: 8px 0;
  color: var(--blue);
  font-size: 15px;
  text-align: center;
  text-decoration: none;
}

:where(input, button, a):focus-visible {
  outline: 3px solid #243f69;
  outline-offset: 3px;
}

.site-footer { padding: 18px 16px 22px; text-align: center; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; }
.site-footer a { padding: 10px 14px; color: #fff; font-size: 13px; text-decoration: none; }
.site-footer a + a { border-left: 1px solid rgb(255 255 255 / 65%); }
.site-footer a:focus-visible { outline-color: #fff; }
.site-footer small { display: block; margin-top: 8px; font-size: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 600px) {
  main { padding: 56px 24px; }
  .login-card { padding: 36px; }
  h1 { font-size: 30px; }
}
