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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f8f6;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.container {
  background: #fff;
  border: 1px solid #e4e4e0;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
}

h1 {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 0.375rem;
}

input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d4d4ce;
  border-radius: 5px;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s;
}

input:focus {
  outline: none;
  border-color: #555;
}

button[type="submit"] {
  width: 100%;
  padding: 0.7rem;
  margin-top: 1.25rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

button[type="submit"]:hover {
  background: #333;
}

button[type="submit"]:disabled {
  background: #999;
  cursor: not-allowed;
}

.error {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 5px;
  color: #b91c1c;
  font-size: 0.875rem;
}

.success {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 5px;
  color: #166534;
  font-size: 0.875rem;
}

.link {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

.link a {
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: none;
}

.link a:hover {
  text-decoration: underline;
}
