* {
  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: var(--theme-primary);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px var(--theme-primary-soft);
}

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,
    var(--theme-primary) 0%,
    var(--theme-primary) 100%
  );
  color: var(--theme-text-primary);
  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 var(--theme-primary-shadow);
  margin-top: 8px;
}

button:hover {
  background: linear-gradient(
    135deg,
    var(--theme-primary) 0%,
    var(--theme-primary) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--theme-primary-glow);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px var(--theme-primary-shadow);
}

#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;
}

/* ======================================================
   RESPONSIVO - SMARTPHONES
====================================================== */
@media (max-width: 768px) {
  .logo {
    width: 150px;
    margin-bottom: 20px;
  }

  form {
    width: 90%;
    max-width: 340px;
    padding: 30px 25px;
  }

  form h2,
  form .form-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  input {
    padding: 14px 16px;
    font-size: 14px;
    margin-bottom: 12px;
  }

  button {
    padding: 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 120px;
    margin-bottom: 15px;
  }

  form {
    width: 95%;
    padding: 25px 20px;
    border-radius: 12px;
  }

  form h2,
  form .form-title {
    font-size: 16px;
  }

  input {
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 8px;
  }

  button {
    padding: 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  #error {
    font-size: 12px;
    padding: 8px;
  }
}
