body {
  margin: 0;
  padding: 0;
  background: #eef2f7;
  font-family: 'Segoe UI', sans-serif;
}

.login-container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 320px;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}


.error {
  color: red;
  text-align: center;
  margin-top: 12px;
}



.links {
  text-align: center;
  margin-top: 10px;
}

.links a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.links a:hover {
  text-decoration: underline;
}


/* Wyrównanie wszystkich pól formularza */
.login-box input[type="text"],
.login-box input[type="password"],
.login-box input[type="email"],
.login-box input[type="date"] {
  width: 100%;      /* pełna szerokość formularza */
  margin: 10px 0;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

/* Przycisk mniejszy i przesunięty w prawo */
.login-box input[type="submit"] {
  width: 50%;             /* zmniejszony przycisk */
  margin-left: auto;      /* wyrównanie w prawo */
  margin-right: 0;
  padding: 10px;
  background-color: #007bff;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;         /* aby margin-left zadziałał */
}

.login-box input[type="submit"]:hover {
  background-color: #0056b3;
}

/* Link do logowania */
.login-box .links {
  text-align: center;
  margin-top: 10px;
}

/* Domek w lewym górnym rogu formularza */
.login-box .home-link {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  text-decoration: none;
  color: #007bff;
}
.login-box .home-link:hover {
  color: #0056b3;
}

/* Aby formularz miał relative i domek był względem niego */
.login-box {
  position: relative;
}
