/* =====================================================
   LOGIN ASOCIADOS — GME Mensajería Express
   Pantalla de acceso al sistema interno
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Pantalla de login: cubre todo el viewport sobre el layout antiguo */
#gme-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
}

/* ---- Panel izquierdo: marca ---- */
.gme-login-brand {
  flex: 0 0 45%;
  background: linear-gradient(150deg, #0a1f5c 0%, #0d47a1 55%, #1565c0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

/* Círculos decorativos */
.gme-login-brand::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.gme-login-brand::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

/* Líneas decorativas animadas */
.gme-brand-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.gme-brand-lines span {
  display: block;
  position: absolute;
  height: 1px;
  background: rgba(255,255,255,0.08);
  animation: slide-line 8s linear infinite;
}
.gme-brand-lines span:nth-child(1) { width: 60%; top: 20%; left: -60%; animation-delay: 0s; }
.gme-brand-lines span:nth-child(2) { width: 40%; top: 45%; left: -40%; animation-delay: 2s; }
.gme-brand-lines span:nth-child(3) { width: 70%; top: 70%; left: -70%; animation-delay: 4s; }
.gme-brand-lines span:nth-child(4) { width: 50%; top: 85%; left: -50%; animation-delay: 6s; }

@keyframes slide-line {
  to { left: 110%; }
}

.gme-brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Logo */
.gme-brand-logo {
  width: 110px;
  height: 110px;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  padding: 10px;
}
.gme-brand-logo:hover {
  transform: scale(1.05);
}
.gme-brand-logo img {
  width: 80px;
  height: auto;
  display: block;
  /* Sin filter — se muestra con sus colores originales */
}

.gme-brand-name {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.gme-brand-sub {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 48px;
}

/* Divisor */
.gme-brand-divider {
  width: 48px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  margin: 0 auto 32px;
}

.gme-brand-tagline {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}
.gme-brand-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* Estadísticas inferiores */
.gme-brand-stats {
  display: flex;
  gap: 32px;
  margin-top: 64px;
  position: relative;
  z-index: 1;
}
.gme-stat-item {
  text-align: center;
}
.gme-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: block;
}
.gme-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Panel derecho: formulario ---- */
.gme-login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8faff;
  padding: 40px 32px;
  overflow-y: auto;
}

.gme-login-card {
  width: 100%;
  max-width: 400px;
  animation: fade-in-up 0.5s ease both;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Saludo */
.gme-login-greeting {
  margin-bottom: 36px;
}
.gme-login-greeting h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0a1f5c;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.gme-login-greeting p {
  font-size: 0.9rem;
  color: #78909c;
  font-weight: 400;
}

/* Mensajes flash */
.gme-login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fade-in-up 0.3s ease;
}
.gme-login-alert.error {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
}
.gme-login-alert.success {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #389e0d;
}
.gme-login-alert .alert-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Grupos de campos */
.gme-form-group {
  margin-bottom: 18px;
}
.gme-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #546e7a;
  margin-bottom: 8px;
}

/* Input con ícono */
.gme-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.gme-input-wrap .gme-input-icon {
  position: absolute;
  left: 16px;
  color: #90a4ae;
  font-size: 15px;
  pointer-events: none;
  transition: color 0.2s;
}
.gme-input-wrap input {
  width: 100%;
  border: 1.5px solid #e0e7ef;
  border-radius: 12px;
  padding: 14px 16px 14px 44px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1a1a2e;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.gme-input-wrap input::placeholder {
  color: #b0bec5;
  font-weight: 400;
}
.gme-input-wrap input:focus {
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}
.gme-input-wrap:focus-within .gme-input-icon {
  color: #1565c0;
}

/* Toggle ver/ocultar contraseña */
.gme-pass-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #90a4ae;
  cursor: pointer;
  padding: 4px;
  font-size: 15px;
  transition: color 0.2s;
  line-height: 1;
}
.gme-pass-toggle:hover {
  color: #1565c0;
}

/* reCAPTCHA */
.gme-recaptcha-box {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Botón principal */
.gme-btn-login {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.gme-btn-login:hover {
  background: linear-gradient(135deg, #0a2d6e, #0d47a1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13,71,161,0.35);
}
.gme-btn-login:active {
  transform: translateY(0);
  box-shadow: none;
}
.gme-btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner al enviar */
@keyframes gme-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.gme-spin {
  display: inline-block;
  animation: gme-rotate 0.8s linear infinite;
}

/* Link recuperar contraseña */
.gme-forgot-link {
  text-align: center;
  margin-top: 20px;
}
.gme-forgot-link a {
  font-size: 0.85rem;
  color: #1565c0;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.gme-forgot-link a:hover {
  color: #0a2d6e;
  text-decoration: underline;
}

/* Footer de la tarjeta */
.gme-login-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 11px;
  color: #b0bec5;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .gme-login-brand {
    display: none;
  }
  .gme-login-form-panel {
    background: #fff;
  }
}

/* Honeypot: fuera de pantalla, NO display:none (los bots lo ignorarían) */
.gme-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

