body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f7f9f3, #e8f0da);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

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

.login-card {
  background: white;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card h2 {
  margin-bottom: 20px;
  color: #2e4600;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  text-align: left;
  font-weight: 600;
  color: #3e4e20;
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
}

input:focus {
  border-color: #6b8e23;
  outline: none;
}

button {
  background: #6b8e23;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #556b2f;
}

.error {
  background: #ffefef;
  color: #c0392b;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.register-text {
  margin-top: 16px;
  font-size: 14px;
}

.register-text a {
  color: #6b8e23;
  font-weight: 600;
  text-decoration: none;
}

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

.back-home {
  display: inline-block;
  margin-top: 15px;
  font-size: 14px;
  color: #3e4e20;
  text-decoration: none;
}

.back-home:hover {
  text-decoration: underline;
}

/* === Formularz rejestracji === */

.register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 60px 0;
}

.register-card {
  background: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 420px;
  text-align: center;
  border: 1px solid #d9e2c5;
}

.register-card h2 {
  margin-bottom: 20px;
  color: #2e4600;
  font-size: 1.6rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  text-align: left;
  font-weight: 600;
  color: #3e4e20;
}

input[type="email"],
input[type="password"] {
  padding: 10px;
  border: 1px solid #ccd5ae;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: #6b8e23;
  box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.2);
  outline: none;
}

input[type="submit"] {
  background: #7da450;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

input[type="submit"]:hover {
  background: #648040;
}

.success {
  background: #edf7ed;
  color: #2d6a2d;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  text-align: center;
}

.error {
  background: #ffefef;
  color: #c0392b;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  text-align: center;
}

.login-text {
  margin-top: 16px;
  font-size: 14px;
}

.login-text a {
  color: #6b8e23;
  font-weight: 600;
  text-decoration: none;
}

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

.back-home {
  display: inline-block;
  margin-top: 15px;
  font-size: 14px;
  color: #3e4e20;
  text-decoration: none;
}

.back-home:hover {
  text-decoration: underline;
}