body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: rgb(122, 122, 122);
  background-image: url('szisza.png');
  background-blend-mode: multiply;
  background-size: cover;
  background-repeat: no-repeat;
  color: whitesmoke;
}

.wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#frontground {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex: 1;
  width: 500px;
  height: 500px;
  background-color: rgba(51, 51, 51, 0.7);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#frontground.fadeIn {
  animation: fadeIn 0.6s ease-out;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 2%;
  margin-right: 15%;
}

.napis {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.form-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.icon {
  margin-left: 9.5%;
  margin-right: 1%;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
  width: 24px;
  height: 24px;
}

.icon2 {
  margin-left: 10%;
  margin-right: 1.1%;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.7s forwards;
  width: 21px;
  height: 21px;
}

.pass1 {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.3s forwards;
}

.pass2 {
  animation: fadeIn 1s ease-out 0.7s forwards;
}

input {
  transition: all 0.3s ease;
  width: 250px;
  border-radius: 10px;
  padding: 20px;
  border: 3px solid white;
  background-color: rgba(134, 134, 134, 0.3);
  color: white;
  font-size: 16px;
  opacity: 0;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

input:hover {
  background-color: rgba(134, 134, 134, 0.5);
}

button {
  transition: all 0.3s ease;
  margin-top: 7%;
  align-self: center;
  font-weight: bold;
  color: white;
  border: 2px solid white;
  background-color: rgba(110, 110, 110, 0.3);
  height: 40px;
  width: 100px;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
  margin-left: 20%;
}

button:hover {
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 80%;
}

/* Efekty błędu */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

@keyframes colorChange {
  to { background-color: rgb(179, 0, 0); }
}
.shake {
  animation: shake 0.4s ease;
}

.input-error {
  border: 3px solid red !important;
}

.button-error {
  animation: shake 0.4s ease;
  background-color: rgba(255, 0, 0, 0.6) !important;
  border-color: red !important;
}

/* Blokada fadeIn po błędzie logowania */
body.no-fade #frontground.fadeIn {
  animation: none !important;
}

footer {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  width: 99%;
  padding: 0.5%;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 14px;
  float: left;
  flex-wrap: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.6s ease-out;
}

.stopka, .stopka2 {
  margin: 0;
  white-space: nowrap;
}

footer {
  background-color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

@media (max-width: 500px) {
  input {
    width: 100%;
    font-size: 14px;
    padding: 16px;
  }

  .icon {
    width: 20px;
    height: 20px;
  }

  button {
    width: 100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px); 
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ---------- ANIMACJE BŁĘDU ------------ */

/* delikatne czerwone „pulsowanie” */
@keyframes colorPulse {
  0%   { background-color: rgba(155,30,30,.40); }
  50%  { background-color: rgba(155,30,30,.60); }
  100% { background-color: rgba(155,30,30,.40); }
}

/* już masz @keyframes shake – zostaw ją */
 
/* INPUT po błędzie */
.input-error{
  border:3px solid red !important;
  background-color: rgba(155,30,30,.40) !important;
  animation: shake .4s ease, colorPulse .8s linear;
}

/* PRZYCISK po błędzie */
.button-error{
  background-color: rgba(179,0,0,.8) !important;
  border-color:red !important;
  animation: shake .4s ease, colorPulse .8s linear;
}

