body.bg-white {
  background-image: url('../img/fundo-login.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-family: "Dancing Script", cursive;
}

.login-container {
  max-width: 450px;
  width: 100%;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
}

.form-control.input-field {
  background: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 8px;
  color: #495057;
  height: 50px;
  transition: all 0.3s ease;
}

.form-control.input-field:focus {
  background: #fcf9f9;
  border-color: #7aa2e3;
  box-shadow: 0 0 10px rgba(122, 162, 227, 0.3);
  color: #495057;
}

.form-control.input-field::placeholder {
  color: #6c757d;
}

/* Override the label color to ensure it's visible on white */
.form-floating > label {
  color: #6c757d;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #7aa2e3;
  transform: translateY(-1.5rem) scale(0.85);
  background-color: #ffffff; /* Add background to hide the line through label if any */
  padding: 0 5px;
  height: auto;
}

.toggle-password {
  cursor: pointer;
  color: #6c757d;
  transition: color 0.3s ease;
  z-index: 10; /* Ensure icon is above input field */
}

.toggle-password:hover {
  color: #1c0279;
}

.btn-login {
  background: linear-gradient(
    45deg,
    rgba(23, 3, 97, 0.973),
    rgba(4, 181, 216, 0.7)
  );
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  color: white;
}

.btn-login:hover {
  background: linear-gradient(45deg, rgba(28, 2, 121, 1), rgba(0, 212, 255, 1));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(28, 2, 121, 0.4);
  color: white;
}

.alert {
  border-radius: 8px;
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.modal-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
}
