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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1117;
  font-family: system-ui, -apple-system, sans-serif;
  padding: 1rem;
}

.card {
  background: #1a1d27;
  border: 1px solid #2a2d3a;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
}

h1 {
  font-size: 1.35rem;
  margin-bottom: 1.75rem;
  color: #e2e8f0;
  font-weight: 600;
}

.field {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8b92a5;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #12151e;
  border: 1.5px solid #2a2d3a;
  border-radius: 8px;
  font-size: 1rem;
  color: #e2e8f0;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

input[type="text"]::placeholder {
  color: #3d4154;
}

input[type="text"]:focus {
  border-color: #6366f1;
}

button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.9rem;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

button:hover {
  background: #4f46e5;
}

button:active {
  background: #4338ca;
}

button:disabled {
  background: #2a2d3a;
  color: #555;
  cursor: not-allowed;
}

.message {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.message.success { color: #34d399; }
.message.error   { color: #f87171; }

@media (max-width: 480px) {
  .card {
    padding: 2rem 1.25rem;
    border-radius: 10px;
  }

  h1 {
    font-size: 1.2rem;
  }
}