
  *, *::before, *::after { box-sizing: border-box; }

  body {
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0a1c36 0%, #0f2d5e 55%, #1a4a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  /* Patrón de puntos decorativo (estilo tech) */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
  }

  /* Círculos decorativos de fondo */
  body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,74,138,0.4) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  .bg-circle-bottom {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10,28,54,0.6) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  /* Contenedor principal */
  .login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
  }

  /* Tarjeta */
  .login-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.35),
      0 8px 20px rgba(0, 0, 0, 0.2);
    /*border: 1px solid rgba(255, 255, 255, 0.15); /* borde sutil blanco */
    animation: slideUp 0.5s ease both;
  }

  @keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Header de la tarjeta */
  .card-header-custom {
    /*background: linear-gradient(135deg, #0a1c36 0%, #0f2d5e 100%);*/
    background: linear-gradient(135deg, #1a4a8a 0%, #2260b5 100%);
    padding: 36px 32px 28px;
    text-align: center;
    position: relative;
    border-top: 4px solid #4a90d9; /* línea azul claro arriba */
  }

  .card-header-custom::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a4a8a, #4a90d9, #1a4a8a);
  }

  .card-header-custom img {
    width: 150px;
    max-width: 100%;
    /*filter: brightness(0) invert(1);  */ /* fuerza el logo a blanco */
    transition: transform 0.3s ease;
  }

  .card-header-custom img:hover {
    transform: scale(1.04);
  }

  /* Badge "Sistema de Gestión" */
  .system-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  /* Cuerpo */
  .card-body-custom {
    padding: 36px 32px 40px;
  }

  .login-title {
    font-size: 20px;
    font-weight: 700;
    color: #0a1c36;
    margin-bottom: 6px;
    text-align: center;
  }

  .login-subtitle {
    font-size: 13px;
    color: #7a8a9a;
    text-align: center;
    margin-bottom: 28px;
  }

  /* Grupos de inputs */
  .input-group-custom {
    position: relative;
    margin-bottom: 18px;
  }

  .input-group-custom .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a4a8a;
    font-size: 15px;
    z-index: 2;
    pointer-events: none;
  }

  .input-group-custom input {
    width: 100%;
    padding: 13px 42px 13px 42px;
    border: 1.5px solid #d8e2ef;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #1a2b42;
    background: #f7f9fc;
    transition: all 0.25s ease;
    outline: none;
  }

  .input-group-custom input::placeholder {
    color: #aab4c2;
    font-weight: 400;
  }

  .input-group-custom input:focus {
    border-color: #1a4a8a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,74,138,0.1);
  }

  /* Ícono toggle contraseña */
  .toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a8a9a;
    cursor: pointer;
    font-size: 15px;
    z-index: 2;
    transition: color 0.2s;
  }

  .toggle-pass:hover { color: #1a4a8a; }

  /* Botón principal */
  .btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0a1c36 0%, #1a4a8a 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px;
    box-shadow: 0 4px 15px rgba(26,74,138,0.35);
  }

  .btn-login:hover {
    background: linear-gradient(135deg, #0f2d5e 0%, #2260b5 100%);
    box-shadow: 0 6px 20px rgba(26,74,138,0.5);
    transform: translateY(-1px);
  }

  .btn-login:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(26,74,138,0.3);
  }

  .btn-login i { margin-right: 8px; }

  /* Footer de la tarjeta */
  .card-footer-custom {
    text-align: center;
    padding: 14px 32px 20px;
    border-top: 1px solid #eef1f6;
    font-size: 11.5px;
    color: #aab4c2;
  }

  .card-footer-custom span { color: #1a4a8a; font-weight: 600; }

  /* Responsive */
  @media (max-width: 440px) {
    .card-body-custom  { padding: 28px 22px 32px; }
    .card-header-custom { padding: 28px 22px 22px; }
  }
