:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Helvetica,
    Arial,
    Apple Color Emoji,
    Segoe UI Emoji;
}

.shell {
  width: min(28rem, calc(100% - 2rem));
  margin: 4.5rem auto;
}

.panel {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.hidden {
  display: none;
}

.logo {
  width: 50%;
  display: block;
  margin: 0 auto;
}

h1,
h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.muted {
  margin: 0.5rem 0 1.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.45;
}

form {
  display: grid;
  gap: 0.625rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
}

input {
  width: 100%;
  height: 2.5rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

input::placeholder {
  color: hsl(var(--muted-foreground));
}

input:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.captcha-box {
  min-height: 70px;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    color 120ms,
    background-color 120ms,
    border-color 120ms,
    opacity 120ms;
  cursor: pointer;
}

button:not(.secondary) {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

button:not(.secondary):hover {
  opacity: 0.92;
}

button.secondary {
  background: hsl(var(--background));
  border-color: hsl(var(--input));
  color: hsl(var(--foreground));
}

button.secondary:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

button:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.status.error {
  color: hsl(var(--destructive));
}

.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.notice-content {
  margin: 1rem 0 0;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--muted));
  padding: 0.875rem;
  line-height: 1.45;
  font-size: 0.875rem;
}

.notice-content h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.notice-content p {
  margin: 0.5rem 0;
}

.notice-content strong {
  font-weight: 600;
}

@media (max-width: 640px) {
  .shell {
    margin: 1.25rem auto;
  }

  .panel {
    padding: 1rem;
  }
}
