/* =========================================================
   IngesisCRM — Estilos de la pantalla de Login
   ========================================================= */
body.login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a2744 0%, #2c5282 60%, #2b6cb0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-wrapper {
  width: 100%;
  max-width: 860px;
}

.login-card {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Panel izquierdo – branding */
.login-brand {
  background: linear-gradient(160deg, #1a2744 0%, #2c5282 100%);
  padding: 3rem 2.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  top: -80px; right: -80px;
}

.login-brand::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  bottom: -50px; left: -50px;
}

.login-brand .brand-logo {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.15);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.login-brand h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 .5rem;
}

.login-brand h2 {
  font-size: 1rem;
  font-weight: 400;
  opacity: .85;
  line-height: 1.5;
  margin: 0;
}

.login-brand .brand-features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.brand-feature {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  opacity: .8;
}

.brand-feature i { color: #63b3ed; font-size: 1rem; }

/* Panel derecho – formulario */
.login-form-panel {
  padding: 3rem 2.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-panel h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: .25rem;
}

.login-form-panel .subtitle {
  color: #718096;
  font-size: .9rem;
  margin-bottom: 2rem;
}

.login-input-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.login-input-group .input-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 1rem;
  pointer-events: none;
}

.login-input-group .form-control {
  padding-left: 2.6rem;
  height: 2.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: .625rem;
  font-size: .9375rem;
}

.login-input-group .form-control:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66,153,225,.15);
}

.login-input-group .form-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #4a5568;
  margin-bottom: .4rem;
}

.btn-login {
  width: 100%;
  height: 2.75rem;
  background: linear-gradient(135deg, #2c5282, #4299e1);
  border: none;
  border-radius: .625rem;
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .3px;
  transition: opacity .2s, transform .15s;
  margin-top: .5rem;
}

.btn-login:hover  { opacity: .92; transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }

.login-error {
  background: #fff5f5;
  border: 1px solid #fc8181;
  border-radius: .5rem;
  color: #c53030;
  padding: .65rem 1rem;
  font-size: .875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.login-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: .8rem;
  color: #a0aec0;
}

/* Responsive */
@media (max-width: 640px) {
  .login-card { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-panel { padding: 2rem 1.5rem; }
}
