@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700;900&display=swap');

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Nunito Sans', Arial, sans-serif;
  background-color: #f4f4f4;
  color: #222;
  line-height: 1.6;
}

body {
  justify-content: center;
  align-items: center;
}

form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

h2 {
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
}

input {
  display: block;
  margin-bottom: 1rem;
  padding: 0.7rem;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  padding: 0.7rem;
  width: 100%;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #45a049;
}

#error {
  color: red;
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 700;
}

.powiadomienie {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-weight: 700;
  z-index: 1000;
  font-size: 16px;
  animation: fadeIn 0.5s ease, fadeOut 0.5s ease 2.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    bottom: 0;
  }
  to {
    opacity: 1;
    bottom: 20px;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    bottom: 0;
    pointer-events: none;
  }
}
