@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600&display=swap');

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

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: 'Public Sans', sans-serif;
  background-color: #1e2936;
  color: #ffffff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Desktop: top-left */
.layout {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px;
  min-height: 100vh;
}

/* Mobile: centered */
@media (max-width: 600px) {
  .layout {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
}

.card {
  background-color: #253545;
  border: 1px solid #2f4155;
  border-radius: 10px;
  padding: 32px;
  width: 100%;
  max-width: 360px;
}

.field + .field {
  margin-top: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ffffffcc;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

input {
  width: 100%;
  background-color: #1e2936;
  border: 1px solid #2f4155;
  border-radius: 6px;
  color: #ffffff;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
}

input::placeholder {
  color: #ffffff33;
}

input:focus {
  border-color: #4a6580;
  box-shadow: 0 0 0 3px rgba(74, 101, 128, 0.25);
}

/* High-contrast focus for keyboard nav */
input:focus-visible {
  border-color: #7aa8d0;
  box-shadow: 0 0 0 3px rgba(122, 168, 208, 0.3);
}

button {
  margin-top: 24px;
  width: 100%;
  background-color: #ffffff;
  color: #1e2936;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}

button:hover {
  opacity: 0.88;
}

button:active {
  opacity: 0.75;
}

button:focus-visible {
  outline: 3px solid #7aa8d0;
  outline-offset: 2px;
}
