/* Erros e alertas inline em vermelho */
.form-error {
  color: #ff3333;
  background: #fff0f0;
  border: 1px solid #ff3333;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 1em;
  display: none;
}
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #141e30, #243b55);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.login-container {
  background: rgba(0,0,0,0.6);
  padding: 3%;
  border-radius: 12px;
  width: 19%;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  text-align: center;
}

h2 {
  margin-bottom: 15%;
}

.input-group {
  margin-bottom: 5%;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 2%;
  font-size: 1em;
}

.input-group input {
  width: 95%;
  padding: 2.5%;
  border: none;
  border-radius: 8px;
  outline: none;
}

button {
  width: 100%;
  padding: 10px;
  background: #ff4b2b;
  margin-top: 10%;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #ff3a1a;
}

p {
  margin-bottom: 10%;
}

.extra-links {
  margin-top: 5%;
  font-size: 0.9em;
}

.extra-links a {
  color: #ffcc70;
  text-decoration: none;
}

.extra-links a:hover {
  text-decoration: underline;
}

/* Field-level error styles */
.field-error {
  color: #ff3333;
  margin-top: 6px;
  font-size: 0.9em;
  display: none;
}
.invalid {
  border-color: #ff3333 !important;
  box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.15) !important;
}

/* Sucesso (verde) */
.form-success {
  color: #1b7f3b;
  background: #eaf7ef;
  border: 1px solid #1b7f3b;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 10px;
  font-weight: bold;
  display: none;
}
