/* Estilos específicos para el login - VERSIÓN COMPACTA VERDE */
:root {
  --primary: #026137;
  --primary-light: #0b6b3d;
  --primary-dark: #034a2a;
  --primary-gradient: linear-gradient(135deg, #026137, #0b6b3d);
  --primary-glow: 0 4px 20px rgba(2, 97, 55, 0.12);
  --crm-accent: #026137;
  --surface: #f8fafc;
  --accent-soft: rgba(2, 97, 55, 0.08);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --dark: #1e293b;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --card-radius: 16px;
  --card-radius-lg: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  line-height: 1.5;
  font-size: 14px;
}

.login-container {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: var(--card-radius-lg);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
  display: flex;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(2, 97, 55, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(11, 107, 61, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.login-left {
  flex: 1;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

.login-right {
  flex: 1.1;
  background: var(--primary-gradient);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('../img/BANNERCOTIZACIONES.webp') center/cover no-repeat,
    linear-gradient(135deg, rgba(2, 97, 55, 0.9), rgba(11, 107, 61, 0.9));
  opacity: 0.1;
  mix-blend-mode: overlay;
}

.login-right::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
}

.brand {
  margin-bottom: 2rem;
  text-align: center;
}

.logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--primary-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--primary-glow);
  position: relative;
  transition: all 0.2s ease;
}

.logo:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(2, 97, 55, 0.2);
}

.logo::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--primary-gradient);
  border-radius: 15px;
  z-index: -1;
  opacity: 0.4;
  filter: blur(6px);
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  filter: brightness(0) invert(1);
}

.brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.brand p {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
}

.login-form {
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-label {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: block;
}

.form-control {
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  color: var(--gray-800);
  height: 44px;
}

.form-control::placeholder {
  color: var(--gray-500);
  font-weight: 400;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 97, 55, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.input-group {
  position: relative;
}

.input-group .form-control {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.password-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(2, 97, 55, 0.05);
}

.btn-login {
  width: 100%;
  background: var(--primary-gradient);
  border: none;
  border-radius: 10px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  transition: all 0.2s ease;
  box-shadow: var(--primary-glow);
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 46px;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 6px 20px rgba(2, 97, 55, 0.2),
    0 0 0 1px rgba(2, 97, 55, 0.1);
}

.btn-login:active {
  transform: translateY(0);
}

.form-text {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
  text-align: center;
}

.alert {
  border-radius: 10px;
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.alert-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.04));
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.04));
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.welcome-section {
  position: relative;
  z-index: 2;
  max-width: 320px;
}

.welcome-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
  animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.welcome-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-weight: 500;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.feature-list li:hover {
  transform: translateX(5px);
}

.feature-list li::before {
  content: '✓';
  margin-right: 0.75rem;
  font-weight: bold;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.15);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.footer-note {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    max-width: 400px;
    min-height: auto;
  }
  
  .login-right {
    order: -1;
    padding: 2rem 1.5rem;
  }
  
  .login-left {
    padding: 2rem 1.5rem;
  }
  
  .welcome-title {
    font-size: 1.35rem;
  }
  
  .brand h1 {
    font-size: 1.35rem;
  }
  
  .welcome-icon {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .login-left,
  .login-right {
    padding: 1.75rem 1.25rem;
  }
  
  .logo {
    width: 50px;
    height: 50px;
  }
  
  .logo img {
    width: 26px;
    height: 26px;
  }
  
  .brand h1 {
    font-size: 1.25rem;
  }
  
  .welcome-title {
    font-size: 1.25rem;
  }
  
  .welcome-icon {
    font-size: 2rem;
  }
  
  .login-form {
    max-width: 100%;
  }
}

/* Efectos de carga y estado */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-login:disabled {
  opacity: 0.6;
  transform: none !important;
  cursor: not-allowed;
}

/* Mejoras para el contador de bloqueo */
#countdownContainer {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

#countNum {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--primary);
}