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

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(53, 113, 234, 0.15), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #edf2f7 100%);
}

button,
input {
  font: inherit;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.panel {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(31, 45, 61, 0.12);
}

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

.eyebrow {
  margin: 0 0 10px;
  color: #315bdc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.25;
}

.muted {
  margin: 0;
  color: #667085;
  line-height: 1.7;
}

.stack {
  display: grid;
  gap: 16px;
}

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

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 0 14px;
  color: #17202a;
  background: #ffffff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: #315bdc;
  box-shadow: 0 0 0 4px rgba(49, 91, 220, 0.14);
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: #254eda;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

button:hover {
  background: #1f43bd;
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.secondary-button {
  min-height: 40px;
  border: 1px solid #cfd8e3;
  color: #344054;
  background: #ffffff;
}

.secondary-button:hover {
  background: #f3f6fa;
}

.message {
  min-height: 22px;
  margin: 18px 0 0;
  color: #c03434;
  font-size: 14px;
  line-height: 1.6;
}

.top-page {
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 5vw, 48px);
  border-bottom: 1px solid #dfe7f1;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.welcome {
  display: grid;
  align-items: center;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 64px clamp(16px, 5vw, 48px);
}

.welcome section {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(31, 45, 61, 0.1);
}

.status-dot {
  width: 14px;
  height: 14px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #315bdc;
  box-shadow: 0 0 0 0 rgba(49, 91, 220, 0.4);
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 14px rgba(49, 91, 220, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(49, 91, 220, 0);
  }
}

@media (max-width: 520px) {
  .panel {
    padding: 26px;
  }

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

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