/* 
  Estilos da tela de Login (Apresentação Split-Screen)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1a3a6b;
  --secondary: #2ecc71;
  --accent: #f39c12;
  --dark: #0d1b2a;
  --light: #f4f7fc;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  --border-radius: 12px;
}

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
}

.login-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Painel da Esquerda (Branding / Apresentação) */
.login-brand {
  flex: 1.2;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  position: relative;
}

.login-brand::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') repeat;
  opacity: 0.5;
  pointer-events: none;
}

.brand-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.brand-content h1 {
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.brand-content p {
  font-size: 1.25rem;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.feature-list li i {
  color: var(--secondary);
  margin-right: 15px;
  font-size: 1.5rem;
}

/* Painel da Direita (Formulário) */
.login-form-wrapper {
  flex: 1;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  position: relative;
  z-index: 3;
}

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

.form-box h2 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-box p.text-muted {
  margin-bottom: 2.5rem;
}

.form-control {
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #e0e6ed;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.1);
}

.input-group-text {
  background-color: transparent;
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: #6c757d;
}

.form-control.with-icon {
  border-left: none;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  padding: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  width: 100%;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 27, 42, 0.2);
}

.forgot-password {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Loading Overlay */
#loginOverlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px;
}

/* Responsividade */
@media (max-width: 991px) {
  .login-brand {
    display: none;
  }
  .login-form-wrapper {
    box-shadow: none;
  }
}
