/* =====================
   ESTILOS ESPECÍFICOS DA PÁGINA DE LOGIN
   ===================== */

/* ====== LOGIN PAGE STYLES ====== */
body.login-page {
  background: linear-gradient(135deg, #6613D0 0%, #8B5CF6 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, #6613D0 0%, #8B5CF6 100%), url('/static/images/logcomex_branca.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto, 220px auto;
}

body.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
  z-index: 1;
}

.bg-logo-login {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 220px;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.6s ease-out;
}

.logo-section {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  display: block;
  max-width: 360px;
  width: 100%;
  height: auto;
  margin: 0 auto 15px auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.title {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 16px;
  color: #718096;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #2d3748;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #6613D0;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[readonly],
.form-group select[readonly] {
  background: #f5f7fa;
  color: #a0aec0;
  cursor: not-allowed;
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: #a0aec0;
  font-size: 13px;
}

.input-group {
  position: relative;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 18px;
}

.form-input {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-input:focus {
  outline: none;
  border-color: #6613D0;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error {
  border-color: #f56565;
  box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

/* =====================
   EXCEÇÃO: Ajuste de padding para inputs com ícone na tela de login
   (Garante que o texto não fique embaixo do ícone, sem afetar outros formulários)
   ===================== */
.login-container .input-group .form-input,
.login-container .input-group input {
  padding-left: 50px !important;
}

/* Inputs normais (sem ícone) continuam com padding padrão */
.login-container .form-group input:not(.form-input),
.login-container .form-group select {
  padding-left: 15px !important;
}

/* =====================
   RESPONSIVIDADE ESPECÍFICA DO LOGIN
   ===================== */
@media (max-width: 480px) {
  .login-container {
    margin: 20px;
    padding: 30px 20px;
  }
  
  .title {
    font-size: 24px;
  }
  
  .subtitle {
    font-size: 14px;
  }
}

/* =====================
   ANIMAÇÕES ESPECÍFICAS DO LOGIN
   ===================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
