*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #080808;
  --surface: #18181b;
  --text: #fafafa;
  --text-muted: #71717a;
  --border: #27272a;
  --accent: #e4e4e7;
  --focus: #d4d4d8;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wrap {
  width: 100%;
  max-width: 20rem;
  text-align: center;
}

.logo {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 300;
  letter-spacing: 0.12em;
}

.tagline {
  margin: 0 0 2.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form input {
  width: 100%;
  padding: 0.65rem 0 0.6rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: border-color 0.2s;
}

.form input::placeholder {
  color: var(--text-muted);
}

.form input:hover {
  border-bottom-color: #3f3f46;
}

.form input:focus {
  border-bottom-color: var(--accent);
}

.form button {
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form button:hover {
  opacity: 0.9;
}

.form button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.message {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  min-height: 1.25rem;
}

.message.success {
  color: #86efac;
}

.message.error {
  color: #fca5a5;
}
