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

:root {
  --primary-600: rgb(204, 209, 41);
  --primary-700: rgb(176, 179, 36);
  --primary-800: rgb(143, 146, 28);
  --surface-0: rgb(250, 250, 250);
  --surface-200: rgb(220, 220, 220);
  --surface-400: rgb(160, 160, 160);
  --surface-950: rgb(20, 20, 20);
  --red-400: rgba(251, 113, 133, 1);
  --green-400: rgba(74, 222, 128, 1);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background: #4b4b4b;
  color: var(--surface-0);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card {
  background: #646464;
  border-radius: 12px;
  padding: 2rem 2rem;
  width: 100%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.logo {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.logo img {
  height: 80px;
  width: auto;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--surface-0);
}

.subtitle {
  font-size: 1.125rem;
  color: var(--surface-200);
  margin-bottom: 2rem;
}

.field {
  margin-bottom: 1.5rem;
  text-align: left;
}

label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--surface-0);
  margin-bottom: 0.5rem;
}

input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--surface-950);
  font-family: inherit;
  font-size: 1.125rem;
  outline: none;
  transition: border-color 0.2s;
}

input::placeholder {
  color: #b4bcc8;
}

input:focus {
  border-color: var(--primary-600);
}

input.invalid {
  border-color: var(--red-400);
}

.error-text {
  color: var(--red-400);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
  text-align: left;
}

.error-text.visible {
  display: block;
}

button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: var(--primary-800);
  border: none;
  border-radius: 8px;
  color: var(--surface-0);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: var(--primary-700);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #eff6ff inset;
  transition: background-color 5000s ease-in-out 0s;
}
