/* Always light mode look */
:root {
  color-scheme: only light;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f4f6f9;     /* light gray background */
  color: #111;             /* readable text */
}

.card {
  width: min(420px, 92vw);
  background: #fff;        /* white card */
  color: #111;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 32px 28px;
}

h1 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  text-align: center;
}

p {
  margin: 0 0 18px;
  color: #555;
  text-align: center;
}

label {
  display: block;
  font-size: .9rem;
  margin: 10px 0 6px;
}

input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 2px solid #c7c7c7;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  color: #111;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="password"]:focus {
  border-color: #2F2F75;
  box-shadow: 0 0 4px rgba(47,47,117,0.3);
}

/* Button styling */
button {
  width: 100%;
  padding: 12px 14px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  background: #2F2F75;
  color: #fff;
  transition: filter 0.15s ease-in-out;
}

button:hover {
  filter: brightness(1.06);
}
button:active {
  filter: brightness(0.96);
}

.err {
  color: #b00020;
  margin-top: 10px;
  min-height: 1.2em;
  text-align: center;
}
