    :root {
      --primary: #e0b000;
      --primary-dark: #b89400;
      --dark-bg: #0f0f0f;
      --card-bg: #151515;
      --text-light: #eee;
      --text-muted: #aaa;
      --border: #222;
      --error-bg: #331;
      --error-border: #633;
      --error-text: #fbb;
      --success-bg: #133;
      --success-border: #366;
      --success-text: #bfb;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
      background: var(--dark-bg);
      color: var(--text-light);
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      padding: 20px;
      position: relative;
      overflow-x: hidden;
    }

    /* Fondo blur mejorado */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 0;
      background: url('../img/eliseo.jpg') no-repeat center center/cover;
      filter: blur(15px) saturate(1.1) brightness(0.25);
      transform: scale(1.05);
      pointer-events: none;
    }

    /* Efecto de partículas sutiles en el fondo */
    body::after {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 0;
      background: 
        radial-gradient(circle at 20% 30%, rgba(224, 176, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(224, 176, 0, 0.03) 0%, transparent 50%);
      pointer-events: none;
    }

    /* Logo con el estilo específico */
    .admin-logo {
      position: fixed;
      top: 25px;
      left: 25px;
      z-index: 10;
      width: 120px;
      transition: transform 0.3s ease;
    }

    .admin-logo:hover {
      transform: scale(1.05);
    }

    .admin-logo img {
      display: block;
      width: 100%;
      height: auto;
      object-fit: cover;
      filter: saturate(1.1) contrast(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
      opacity: 0.95;
      transition: opacity 0.3s ease;
    }

    .admin-logo img:hover {
      opacity: 1;
    }

    /* Botón de regreso */
    .back-button {
      position: fixed;
      top: 25px;
      right: 25px;
      z-index: 10;
      background: rgba(21, 21, 21, 0.8);
      border: 1px solid var(--border);
      border-radius: 50px;
      padding: 10px 20px;
      color: var(--text-light);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }

    .back-button:hover {
      background: var(--primary);
      color: var(--dark-bg);
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(224, 176, 0, 0.3);
    }

    /* Contenedor login mejorado */
    .login-container {
      width: 100%;
      max-width: 440px;
      position: relative;
      z-index: 1;
      animation: fadeIn 0.8s ease-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .login-card {
      background: rgba(21, 21, 21, 0.85);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 40px;
      width: 100%;
      box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(224, 176, 0, 0.1);
      backdrop-filter: blur(10px);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .login-card:hover {
      transform: translateY(-5px);
      box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(224, 176, 0, 0.2);
    }

    .logo {
      text-align: center;
      margin-bottom: 32px;
    }

    .logo h1 {
      font-size: 28px;
      color: var(--primary);
      margin-bottom: 8px;
      font-weight: 700;
      letter-spacing: -0.5px;
    }

    .logo p {
      color: var(--text-muted);
      font-size: 15px;
      font-weight: 400;
    }

    /* Indicador de seguridad */
    .security-indicator {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-bottom: 24px;
      color: var(--text-muted);
      font-size: 13px;
    }

    .security-indicator i {
      color: var(--primary);
    }

    .form-group {
      margin-bottom: 24px;
      position: relative;
    }

    label {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
      color: #ccc;
      font-weight: 500;
      font-size: 15px;
    }

    .input-container {
      position: relative;
    }

    input {
      width: 100%;
      padding: 15px 45px 15px 45px; /* Más padding izquierdo para el icono */
      border-radius: 12px;
      border: 1px solid #333;
      background: rgba(15, 15, 15, 0.7);
      color: var(--text-light);
      font-size: 16px;
      transition: all 0.3s ease;
      font-family: 'Segoe UI', sans-serif;
    }

    /* Input de contraseña necesita más padding a la derecha para el botón de mostrar/ocultar */
    input[name="password"] {
      padding-right: 60px;
    }

    input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(224, 176, 0, 0.15);
      background: rgba(15, 15, 15, 0.9);
    }

    input::placeholder {
      color: #666;
    }

    /* Iconos dentro de los inputs - POSICIÓN CORREGIDA */
    .input-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: #666;
      font-size: 16px;
      z-index: 2;
      pointer-events: none;
    }

    .password-toggle {
      position: absolute;
      right: 16px; /* Cambiado de 14px a 16px para mejor alineación */
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #888;
      cursor: pointer;
      font-size: 16px;
      padding: 6px;
      transition: color 0.2s ease;
      z-index: 2;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
    }

    .password-toggle:hover {
      color: var(--primary);
      background: rgba(255, 255, 255, 0.05);
    }

    /* Mensaje de error mejorado */
    .error-message {
      background: var(--error-bg);
      border: 1px solid var(--error-border);
      color: var(--error-text);
      padding: 16px;
      border-radius: 12px;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14.5px;
      animation: shake 0.5s ease-in-out;
    }

    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
      20%, 40%, 60%, 80% { transform: translateX(5px); }
    }

    .error-message i {
      font-size: 18px;
      flex-shrink: 0;
    }

    .btn {
      padding: 16px 24px;
      border-radius: 12px;
      border: none;
      background: var(--primary);
      color: #111;
      font-weight: 700;
      cursor: pointer;
      width: 100%;
      transition: all 0.3s ease;
      font-size: 16px;
      margin-top: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      letter-spacing: 0.5px;
    }

    .btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 7px 20px rgba(224, 176, 0, 0.3);
    }

    .btn:active {
      transform: translateY(0);
    }

    /* Enlaces adicionales */
    .login-footer {
      margin-top: 24px;
      text-align: center;
      color: var(--text-muted);
      font-size: 14px;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .login-footer a {
      color: var(--primary);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .login-footer a:hover {
      color: var(--text-light);
      text-decoration: underline;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .login-card {
        padding: 30px 24px;
      }
      
      body {
        padding: 16px;
      }
      
      .admin-logo {
        top: 15px;
        left: 15px;
        width: 100px;
      }
      
      .back-button {
        top: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 13px;
      }
      
      .logo h1 {
        font-size: 24px;
      }
      
      .logo p {
        font-size: 14px;
      }
      
      /* Ajustes responsive para inputs */
      input {
        padding: 14px 40px 14px 40px;
      }
      
      input[name="password"] {
        padding-right: 55px;
      }
    }

    @media (max-width: 480px) {
      .login-card {
        padding: 24px 20px;
        border-radius: 16px;
      }
      
      input {
        padding: 13px 38px 13px 38px;
        font-size: 15px;
      }
      
      input[name="password"] {
        padding-right: 50px;
      }
      
      .input-icon {
        left: 14px;
        font-size: 15px;
      }
      
      .password-toggle {
        right: 14px;
        width: 30px;
        height: 30px;
      }
      
      .btn {
        padding: 14px 20px;
      }
    }

    /* Animación de carga para el botón */
    .btn.loading {
      position: relative;
      color: transparent;
    }

    .btn.loading::after {
      content: "";
      position: absolute;
      width: 20px;
      height: 20px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top-color: #111;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }