* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #1e293b;
  background: #f6f8fb;
  font-family: "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.auth-panel {
  width: min(420px, calc(100vw - 32px));
  padding: 32px;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgb(15 23 42 / 8%);
}

.auth-panel h1,
.menu h1 {
  margin: 0 0 24px;
  font-size: 28px;
}

.login-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #b8c4d6;
  border-radius: 6px;
  font: inherit;
}

button {
  padding: 10px 14px;
  color: #fff;
  background: #0f766e;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.secondary-link {
  color: #0f766e;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.alert,
.notice {
  padding: 10px 12px;
  border-radius: 6px;
}

.alert {
  color: #991b1b;
  background: #fee2e2;
}

.notice {
  color: #166534;
  background: #dcfce7;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #d9e2ec;
}

.topbar form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.menu-item {
  display: grid;
  min-height: 96px;
  place-items: center;
  color: #0f172a;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
