/* Reset e fontes */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-image: url('img/fundo.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: rgba(255, 255, 255, 0.5);
  background-blend-mode: lighten;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

/* Estilo do formulário */
form {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 30px;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.logo-container {
  text-align: center;
  margin-bottom: 15px;
}
.logo {
  max-width: 150px;
  height: auto;
}

/* Campos do formulário */
.form-field {
  width: 100%;
  margin-bottom: 15px;
}
label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}
input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s;
}
input:focus {
  border-color: #5c11d4;
}

/* Botões */
button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}
button.solid {
  background-color: #5c11d4;
  color: white;
}
button.solid:hover {
  background-color: #5c11d4;
}
button.clear {
  background-color: transparent;
  color: #5c11d4;
  border: 2px solid #5c11d4;
}
button.clear:hover {
  background-color: #e8f5e9;
}

/* Mensagens de erro */
.error {
  color: red;
  font-size: 0.8em;
  display: none;
  margin-top: 5px;
}

/* Loader opcional */
.loader-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  justify-content: center;
  align-items: center;
}
.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #5c11d4;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
