* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --background: #f7f7f7;
  --foreground: #111;
  --line: #cfcfcf;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.5;
}

button,
input {
  color: inherit;
  font: inherit;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 360px);
  border: 1px solid var(--foreground);
  background: #fff;
  padding: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--foreground);
}

h1 {
  margin: 0 0 28px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 12px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: #fff;
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  letter-spacing: 0.12em;
}

input:focus-visible {
  border-color: var(--foreground);
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

button {
  min-height: 48px;
  margin-top: 10px;
  border: 1px solid var(--foreground);
  border-radius: 0;
  background: var(--foreground);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

button:hover,
button:focus-visible {
  background: #fff;
  color: var(--foreground);
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .login-shell {
    padding: 16px;
  }

  .login-card {
    padding: 26px 20px;
  }
}
