@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

body, html {
  height: 100%;
  background-color: #F7F9FA;
}

/* Layout Dividido 60% / 40% */
.split-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.lado-esquerdo {
  flex: 6;
  position: relative;
  background-color: #006064;
  overflow: hidden;
}

.lado-direito {
  flex: 4;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  box-shadow: -5px 0 25px rgba(0,0,0,0.05);
  z-index: 2;
}

/* Carrossel */
.carrossel-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.carrossel-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carrossel-slide.ativo {
  opacity: 1;
}

.legenda-banner {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  background: rgba(0, 96, 100, 0.85);
  color: white;
  padding: 20px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

/* Cabeçalho Institucional UNIG */
.header-unig {
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
  max-width: 380px;
}

.header-unig h2 {
  font-size: 16px;
  color: #222;
  font-weight: 700;
}

.header-unig h3 {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
}

.logo-unig {
  font-size: 38px;
  font-weight: 900;
  color: #004B87;
  letter-spacing: -1px;
  margin: 10px 0;
}

.header-unig .endereco {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* Card de Form de Login */
.login-card {
  width: 100%;
  max-width: 380px;
  background: #FAFAFA;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #E0E0E0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  text-align: center;
}

.login-card h2 {
  color: #D81B60;
  font-size: 22px;
}

.login-card .subtitulo {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
  margin-bottom: 20px;
}

.campo-group {
  margin-bottom: 15px;
}

.login-card input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #CCC;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.login-card input:focus {
  outline: none;
  border-color: #E91E63;
  box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

.login-card button {
  width: 100%;
  padding: 14px;
  background-color: #E91E63;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.login-card button:hover {
  background-color: #C2185B;
}

.alerta-erro {
  display: none;
  background: #FFEBEE;
  color: #C62828;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 15px;
  text-align: left;
}

.link-esqueci {
  display: inline-block;
  margin-top: 15px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  text-decoration: none;
}

.link-esqueci:hover {
  color: #E91E63;
  text-decoration: underline;
}

/* Modal */
.modal-esqueci {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal-conteudo {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 360px;
  text-align: center;
}

.modal-conteudo h3 { color: #006064; margin-bottom: 8px; }
.modal-conteudo p { font-size: 13px; color: #666; margin-bottom: 15px; }
.modal-conteudo input { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 6px; }
.btn-modal-enviar { width: 100%; padding: 12px; background: #00838F; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; }
.btn-modal-fechar { margin-top: 10px; background: none; border: none; color: #888; cursor: pointer; font-size: 12px; }

/* Responsividade */
@media (max-width: 900px) {
  .split-container { flex-direction: column; }
  .lado-esquerdo { min-height: 250px; flex: none; }
  .lado-direito { flex: none; width: 100%; }
}