:root {
  color-scheme: light;
  font-family: "Segoe UI", "Noto Sans JP", sans-serif;
  background: #f6f8fb;
  color: #182033;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.14), transparent 28rem),
    linear-gradient(135deg, #ffffff 0%, #eef4f8 100%);
}

button,
input {
  font: inherit;
}

.auth-shell,
.app-shell {
  width: min(100%, 960px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 16px;
}

.auth-shell {
  display: grid;
  place-items: center;
}

.panel {
  width: min(100%, 480px);
  padding: 32px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.status-panel {
  text-align: center;
}

.dashboard-panel {
  width: 100%;
  margin-top: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
  letter-spacing: 0;
}

.muted {
  margin-bottom: 0;
  color: #5f6b7a;
  line-height: 1.8;
}

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

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c8d3e2;
  border-radius: 6px;
  background: #ffffff;
  color: #182033;
}

input:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.18);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.secondary-button {
  padding: 0 18px;
  border: 1px solid #c8d3e2;
  background: #ffffff;
  color: #182033;
}

.message {
  min-height: 24px;
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.omikuji-actions {
  margin-top: 24px;
}

.omikuji-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .panel {
    padding: 28px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .secondary-button {
    width: 100%;
  }
}
