/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f5f5f5;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* Centered “card” */
form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 320px;
}

/* Heading */
h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #111;
}

/* Error banner */
.error {
  background-color: #fee;
  color: #900;
  border: 1px solid #c88;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Label + inputs */
label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #333;
}

/* container to center the card */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f5f5f5;
}

/* the white “card” */
.login-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 320px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* move the heading inside and style it */
.login-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #111;
  font-size: 1.5rem;
  font-weight: 600;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #444;
  background: #fff;
  outline: none;
}

/* Submit button — black & white */
button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #222;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background-color: #444;
}

/* Responsive tweak */
@media (max-width: 360px) {
  form {
    width: 90%;
    padding: 1.5rem;
  }
}
