:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ffffff;
  --dark-color: #333333;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  margin: 0;
  display: flex;
}

.login-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Seção da Imagem (Lateral Esquerda) */
/* ATENÇÃO: caminho relativo ao CSS -> ../figuras/ */
.image-section {
  flex: 1;
  background: url('../figuras/img2.jpeg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: white;
  position: relative;
}

.image-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.image-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 80%;
}

.image-section h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.image-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Seção do Formulário (Lateral Direita) */
.form-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: var(--light-color);
}

.login-form {
  width: 100%;
  max-width: 400px;
}

.logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo img {
  max-height: 80px;
}

.form-control {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 12px 15px;
  margin-bottom: 1.5rem;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-login {
  background-color: var(--primary-color);
  border: none;
  padding: 12px;
  font-weight: 600;
  width: 100%;
  color: white;
  position: relative;
}

.btn-login:hover {
  background-color: var(--dark-color);
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
}

#login-message {
  display: none;
  margin-bottom: 1rem;
}

.spinner-border {
  display: none;
  margin-left: 5px;
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .image-section {
    display: none;
  }

  .form-section {
    padding: 1.5rem;
  }
}
