* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: bold;
}

/* Container principal com duas colunas */
.login-container {
  display: flex;
  flex: 1;
  min-height: 100vh;
}

/* Lado esquerdo - Carousel de imagens */
.image-section {
  flex: 7;
  background-color: #4A2145;
  background-image: url('assets/seil-logo.svg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.image-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 33, 69, 0.55) 0%, rgba(58, 20, 54, 0.75) 100%);
  z-index: 1;
}

.carousel-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  display: none;
  width: 80%;
  height: 80%;
  animation: fadeIn 1s ease-in-out;
}

.carousel-slide.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
}



.carousel-slide h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.carousel-slide p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 500px;
}

.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Lado direito - Formulário */
.form-section {
  flex: 3;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

main {
  max-width: 100%;
  width: 100%;
  width: 100%;
  padding: 3rem 2.5rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(74, 33, 69, 0.1);
}

main h2 {
  text-align: center;
  color: #4A2145;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  font-weight: bold;
}

main p {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  font-weight: bold;
}

#form-login {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#form-login input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#form-login input:focus {
  border-color: #4A2145;
  box-shadow: 0 0 0 3px rgba(74, 33, 69, 0.1);
}

button {
  width: 100%;
  background-color: #E8402C;
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 33, 69, 0.3);
}

button:hover {
  background-color: #C3321F;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 33, 69, 0.4);
}

button:active {
  transform: translateY(0);
}

#btn-alterar-senha {
  background-color: #6B3160;
  margin-top: 0.5rem;
}

#btn-alterar-senha:hover {
  background-color: #542649;
}

#erro {
  display: none;
  padding: 1rem;
  background: #ffebee;
  color: #c62828;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  border: 1px solid #ef9a9a;
  margin-top: 1rem;
}

/* Modal de alteração de senha */
#modal-alterar-senha {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  color: #4A2145;
  font-size: 1.75rem;
  text-align: center;
}

.modal-form-group {
  margin-bottom: 1.25rem;
}

.modal-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
}

.modal-form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-form-group input:focus {
  border-color: #4A2145;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 33, 69, 0.1);
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-buttons button {
  flex: 1;
}

.btn-cancel {
  background-color: #dc3545;
}

.btn-cancel:hover {
  background-color: #c82333;
}

.modal-message {
  margin-top: 1rem;
  padding: 0.875rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.modal-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.modal-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* Responsividade */
@media (max-width: 968px) {
  .login-container {
    flex-direction: column;
  }
  
  .image-section {
    min-height: 300px;
    display: none; /* Ocultar carousel em mobile */
  }
  
  .form-section {
    min-height: 100vh;
  }
  
  main {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  main h2 {
    font-size: 1.5rem;
  }
  
  .modal-content {
    padding: 2rem 1.5rem;
  }
}