/* ============================================================
   LOGIN CUSTOM — Caro & Asociados
   Paleta: Naranja #FF6A16 | Gris claro #f8f9fa | Blanco #FFFFFF
   ============================================================ */

/* ── Wrapper global ── */
.authentication-wrapper.authentication-cover {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #edf0f4 100%);
}
.authentication-wrapper.authentication-cover::before,
.authentication-wrapper.authentication-cover::after { display: none; }

.authentication-inner.row { min-height: 100vh; }

/* ── Panel izquierdo (branding) ── */
.login-panel-left {
  background: linear-gradient(160deg, #FFFFFF 0%, #f4f6f9 100%);
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
}

/* Círculos decorativos de fondo */
.login-panel-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  border: 55px solid rgba(255,106,22,0.07);
  border-radius: 50%;
}
.login-panel-left::after {
  content: '';
  position: absolute;
  bottom: -70px; left: -70px;
  width: 260px; height: 260px;
  border: 38px solid rgba(255,106,22,0.05);
  border-radius: 50%;
}

.login-brand-content {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

/* Logo de la firma */
.login-logo-img {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
  transition: transform 0.4s ease;
}
.login-logo-img:hover { transform: scale(1.02); }

/* Tagline */
.login-firm-tagline {
  color: #6c757d;
  font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-top: 0.5rem;
  font-weight: 500;
}

/* Línea naranja */
.login-divider-gold {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, transparent, #FF6A16, transparent);
  margin: 1.375rem auto;
}

/* Features */
.login-features       { display: flex; flex-direction: column; gap: 0.7rem; text-align: left; max-width: 270px; margin: 0 auto; }
.login-feature-item   { display: flex; align-items: center; gap: 0.7rem; color: #575F61; font-size: 0.85rem; }
.login-feature-item i { font-size: 1.05rem; color: #FF6A16; flex-shrink: 0; }

.login-panel-footer   { color: rgba(0,0,0,0.3); font-size: 0.72rem; letter-spacing: 0.04em; }

/* ── Panel derecho (formulario) ── */
.login-panel-right {
  background: #FFFFFF;
  min-height: 100vh;
  box-shadow: -4px 0 20px rgba(0,0,0,0.05);
}
.login-form-container { max-width: 440px; margin: 0 auto; width: 100%; }

/* Logo mobile */
.login-logo-mobile {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #FF6A16 0%, #ff8a45 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 0.625rem;
}
.login-logo-mobile i      { font-size: 1.9rem; color: #FFFFFF; }
.login-firm-name-mobile   { font-size: 0.9rem; font-weight: 700; color: #2d3748; text-transform: uppercase; letter-spacing: 0.05em; }

/* Logo mobile */
.login-logo-img-mobile {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

/* Encabezado del formulario */
.login-form-title     { font-size: 1.35rem; font-weight: 700; color: #2d3748; margin: 0 0 0.3rem; }
.login-form-subtitle  { font-size: 0.825rem; color: #6c757d; margin: 0; line-height: 1.5; }

/* ── Zona de alertas ── */
.login-alert-zone {
  border-radius: 10px; padding: 0.7rem 1rem;
  font-size: 0.85rem; font-weight: 500;
  display: none; align-items: flex-start; gap: 0.6rem;
  margin-bottom: 1rem;
  animation: zone-slide 0.3s ease;
}
.login-alert-zone.visible { display: flex; }
@keyframes zone-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.login-alert-zone.alert-lock { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.login-alert-zone.alert-warn { background: #FFF7ED; border: 1px solid #FED7AA; color: #92400E; }
.login-alert-zone.alert-info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.login-alert-zone i          { font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }

/* ── Labels ── */
.login-field-label {
  font-size: 0.73rem; font-weight: 700; color: #575F61;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 0.45rem; display: flex; align-items: center; gap: 0.35rem;
}
.login-field-label i { font-size: 0.85rem; color: #FF6A16; }

/* ── Inputs ── */
.login-field-input.form-control {
  border: 1.5px solid #E2E8F0; border-radius: 10px;
  padding: 0.72rem 1rem; font-size: 0.9rem;
  color: #2d3748; background: #FAFAFA;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}
.login-field-input.form-control:hover  { border-color: #CBD5E1; background: #FAFAFA; }
.login-field-input.form-control:focus  {
  border-color: #FF6A16;
  box-shadow: 0 0 0 3px rgba(255,106,22,0.12);
  background: #FFFFFF; color: #2d3748; outline: none;
}
.login-field-input.form-control::placeholder { color: #CBD5E1; font-style: normal; }

/* Contraseña con toggle */
.login-password-wrap                 { position: relative; }
.login-password-wrap .login-field-input { padding-right: 3.1rem; }
.login-eye-btn {
  position: absolute; right: 0; top: 0;
  height: 100%; width: 3rem;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #94A3B8; transition: color 0.2s;
}
.login-eye-btn:hover { color: #FF6A16; }
.login-eye-btn i     { font-size: 1.15rem; }

/* ── Checkbox recordarme ── */
.login-check .form-check-input       {
  width: 1.05rem; height: 1.05rem;
  border: 1.5px solid #CBD5E1; border-radius: 5px;
  cursor: pointer; transition: all 0.2s; margin-top: 0.15rem;
}
.login-check .form-check-input:checked { background-color: #FF6A16; border-color: #FF6A16; }
.login-check .form-check-input:focus   { box-shadow: 0 0 0 3px rgba(255,106,22,0.15); }
.login-check-label { font-size: 0.82rem; color: #6c757d; cursor: pointer; font-weight: 500; }

/* ── Botón de envío ── */
.login-submit-btn {
  background: linear-gradient(135deg, #FF6A16 0%, #ff8a45 100%);
  color: #FFFFFF;
  border: none; border-radius: 10px;
  padding: 0.8rem 1.25rem; font-size: 0.9rem;
  font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background 0.22s, box-shadow 0.22s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(255,106,22,0.3);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.login-submit-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
}
.login-submit-btn:hover    { background: linear-gradient(135deg, #e65f14 0%, #d55412 100%); box-shadow: 0 8px 24px rgba(255,106,22,0.4); transform: translateY(-1px); }
.login-submit-btn:active   { transform: translateY(0); box-shadow: 0 3px 10px rgba(255,106,22,0.25); }
.login-submit-btn:disabled { background: #94A3B8; box-shadow: none; cursor: not-allowed; transform: none; }

/* ── Footer mobile ── */
.login-form-footer small { color: #94A3B8; font-size: 0.73rem; }

/* ── Responsive: Mobile (<992px) ── */
@media (max-width: 991.98px) {
  .login-panel-right {
    min-height: 100vh;
    background: #FFFFFF;
    display: flex; align-items: center;
  }
  .login-form-container { padding: 2.5rem 0; }
}
@media (max-width: 420px) {
  .login-panel-right  { padding: 1.5rem !important; }
  .login-form-title   { font-size: 1.15rem; }
}

/* ── Validación ── */
.login-field-input.form-control.is-invalid { 
  border-color: #DC2626 !important; 
  background-color: #FEF2F2 !important;
}
.login-field-input.form-control.is-invalid:focus { 
  box-shadow: 0 0 0 3px rgba(220,38,38,0.13) !important; 
  border-color: #DC2626 !important;
}

.invalid-feedback { 
  display: block !important;
  font-size: 0.75rem !important; 
  color: #DC2626 !important; 
  font-weight: 500 !important;
  margin-top: 0.35rem !important;
  padding-left: 0.25rem !important;
}

/* ── Swal overrides (sigue funcionando para otros módulos) ── */

