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

body {
  height: 100vh;
  margin: 0;
  padding: 0;
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Painel esquerdo - formulário */
.form-panel-container {
  display: flex;
  width: 40%;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  min-height: 100vh;
  background-color: var(--dark-bg);
  position: relative;
  z-index: 2;
  clip-path: polygon(0 0, 80% 0, 95% 100%, 0% 100%);
}

.form-panel {
  width: 400px;
  display: flex;
  flex-direction: column;
  position: relative;

}

.brand {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: var(--font-weight-light);
  color: var(--text-color);
  margin-left: 10px;
  letter-spacing: 0.5px;
}

.brand-name strong {
  font-weight: var(--font-weight-bold);
}

.login-title {
  font-size: 16px;
  color: var(--text-color); 
  flex-shrink: 0; 
}

.login-subtitle {
  font-size: 12px;
  margin-bottom: 30px;
  color: var(--text-color); 
  flex-shrink: 0; 
}

.captcha-container {
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0; 
}

.login-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0; 
}

.login-links a {
  color: var(--text-color);
  text-decoration: underline;
  font-size: 12px;
  margin-bottom: 4px;
}

.login-links a:hover {
  color: white;
}

.image-panel {
  width: 70%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  background: url(../../assets/images/logo-login-tracker.svg) no-repeat center center, linear-gradient(75deg, #D3642A 25%, #D33346 100%);
  background-size: contain, cover;
}
.image-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1);
}

.image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
    position: absolute;
    top: 0;
    right: 9%;
    transform: scale(1.23);
}

.error-banner {
  background-color: var(--error-color);
  color: white;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 12px;
  text-align: center;
  flex-shrink: 0;
}

.jconfirm .jconfirm-icon-c {
    display: none !important;
}

/* ✅ RESPONSIVIDADE */
@media (max-width: 1300px){
    .form-panel-container {
      width: 45%;
      clip-path: polygon(0 0, 75% 0, 90% 100%, 0% 100%);
    }
    .image-panel {
    width: 67%;
    }
    .image-panel img {
    transform: scale(1.20);
    } 
}

@media (max-width: 1000px) {
  .login-container {
      background: linear-gradient(75deg, var(--dark-bg) 65.9%, #D3642A 66%, #D33346 100%);
      justify-content: center;
  }

  .form-panel-container {
      width: fit-content;
      min-height: 100vh; 
      padding: 30px 20px; 
      overflow-y: auto;
      clip-path: none;
      background: none;
  }
  
  .image-panel {
      display: none;
  }

  .form-panel {
      width: 100%;
      max-width: 400px; 
      padding: 0; 
  }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
  
    .brand {
        margin-bottom: 30px;
    }
    
    .login-subtitle {
        margin-bottom: 20px;
    }
}

@media (max-height: 600px) {
    .form-panel-container {
        align-items: flex-start; 
        padding-top: 50px;
    }
    
    .brand {
        margin-bottom: 20px; 
    }
    
    .login-subtitle {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .form-panel-container {
        padding: 50px 15px;
    }
    
    .form-panel {
        max-width: 100%;
    }
    
    .brand {
        margin-bottom: 25px;
    }
    
    .login-title {
        font-size: 14px;
    }
    
    .login-subtitle {
        font-size: 11px;
        margin-bottom: 20px;
    }
}