* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#background {
  position: fixed;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(5, 5, 10, 0.85) 50%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 200px;
  margin-bottom: 30px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

form {
  background: linear-gradient(
    145deg,
    rgba(15, 15, 20, 0.98) 0%,
    rgba(5, 5, 8, 0.99) 100%
  );
  padding: 40px 35px;
  border-radius: 16px;
  width: 340px;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

form h2,
form .form-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

input {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  transition: all 0.3s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

input:focus {
  outline: none;
  border-color: #1aff6a;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(26, 255, 106, 0.15);
}

input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

button {
  padding: 16px;
  background: linear-gradient(
    135deg,
    #1aff6a 0%,
    #00d455 100%
  );
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(26, 255, 106, 0.3);
  margin-top: 8px;
}

button:hover {
  background: linear-gradient(
    135deg,
    #00ff5a 0%,
    #00e65a 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 255, 106, 0.4);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(26, 255, 106, 0.3);
}

#error {
  margin-top: 15px;
  color: #ff5c5c;
  font-size: 13px;
  text-align: center;
  padding: 10px;
  background: rgba(255, 92, 92, 0.1);
  border-radius: 8px;
  display: none;
}

#error:not(:empty) {
  display: block;
}

/* Animação de entrada */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

form {
  animation: slideUp 0.5s ease-out;
}

.logo {
  animation: slideUp 0.5s ease-out 0.1s both;
}
