 
    :root {
      --brand1: #22d3ee;
      --brand2: #7c3aed;
      --bg: #05060a;
      --text: #f1f5f9;
      --muted: #94a3b8;
      --radius: 18px;
      --glass: rgba(17, 19, 25, 0.8);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background: var(--bg);
      overflow: hidden;
      color: var(--text);
      min-height: 100vh;
    }

    /* Fondo 3D */
    #bg3D {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }

    /* ===== Desktop ===== */
    .login-desktop {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 400px;
      margin: 12vh auto;
      padding: 40px;
      background: var(--glass);
      border-radius: var(--radius);
      backdrop-filter: blur(14px);
      box-shadow: 0 0 40px rgba(124, 58, 237, 0.4), 0 0 80px rgba(34, 211, 238, 0.2);
      animation: fadeUp 1s ease-out;
      display: block;
      /* visible en desktop por defecto */
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .login-header {
      text-align: center;
      margin-bottom: 25px;
    }

    .login-header img {
      width: 85px;
      height: 85px;
      border-radius: 20%;
      box-shadow: 0 0 20px var(--brand1), 0 0 40px var(--brand2);
      animation: glowPulse 3s infinite alternate;
    }

    @keyframes glowPulse {
      0% {
        box-shadow: 0 0 15px var(--brand1), 0 0 30px var(--brand2);
      }

      100% {
        box-shadow: 0 0 30px var(--brand1), 0 0 60px var(--brand2);
      }
    }

    .login-title {
      margin-top: 10px;
      font-size: 1.5rem;
      font-weight: 900;
      background: linear-gradient(135deg, var(--brand1), var(--brand2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .input-group {
      position: relative;
      margin-bottom: 20px;
    }

    .input-group i {
      position: absolute;
      top: 50%;
      left: 12px;
      transform: translateY(-50%);
      color: var(--brand1);
      font-size: 1.1rem;
    }

    .input-group input {
      width: 100%;
      padding: 12px 12px 12px 40px;
      border: 2px solid transparent;
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.05);
      color: var(--text);
      font-size: 0.95rem;
      transition: border 0.3s, box-shadow 0.3s;
    }

    .input-group input:focus {
      border-color: var(--brand1);
      box-shadow: 0 0 10px var(--brand1), 0 0 20px var(--brand2);
      outline: none;
    }

    .btn-login {
      width: 100%;
      padding: 12px;
      border: none;
      border-radius: var(--radius);
      background: linear-gradient(135deg, var(--brand1), var(--brand2));
      color: #081217;
      font-weight: 700;
      font-size: 1rem;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .btn-login::before {
      content: "";
      position: absolute;
      top: 0;
      left: -75%;
      width: 50%;
      height: 100%;
      background: rgba(255, 255, 255, 0.4);
      transform: skewX(-25deg);
      animation: shine 2.5s infinite;
    }

    @keyframes shine {
      0% {
        left: -75%
      }

      50%,
      100% {
        left: 125%
      }
    }

    .login-footer {
      margin-top: 20px;
      text-align: center;
      font-size: 0.85rem;
      color: var(--muted);
    }

    .login-footer a {
      color: var(--brand1);
    }

    /* ===== Mobile (nuevo layout) ===== */
    .login-mobile {
      position: fixed;
      z-index: 1;
      inset: 0;
      padding: 20px;
      display: none;
      /* oculto por defecto, visible en móviles */
      align-items: center;
      justify-content: center;
    }

    .mobile-card {
      width: 100%;
      max-width: 380px;
      border-radius: 24px;
      padding: 22px 18px;
      background: linear-gradient(180deg, rgba(10, 12, 18, 0.85), rgba(12, 14, 22, 0.65));
      backdrop-filter: blur(16px);
      box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.15), 0 20px 60px rgba(124, 58, 237, 0.25);
      position: relative;
      overflow: hidden;
    }

    /* Borde IA animado */
    .mobile-card::before {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: 26px;
      background: conic-gradient(from 0deg, var(--brand1), var(--brand2), var(--brand1));
      filter: blur(18px);
      opacity: 0.35;
      animation: spin 6s linear infinite;
      z-index: -1;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    .mobile-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .mobile-logo {
      width: 54px;
      height: 54px;
      border-radius: 14px;
      box-shadow: 0 0 20px var(--brand1), 0 0 32px var(--brand2);
    }

    .mobile-title {
      line-height: 1.1;
    }

    .mobile-title h2 {
      font-size: 1.15rem;
      font-weight: 900;
      background: linear-gradient(135deg, var(--brand1), var(--brand2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .mobile-title span {
      font-size: 0.8rem;
      color: var(--muted);
    }

    .mobile-input {
      margin-top: 14px;
      display: grid;
      gap: 12px;
    }

    .mobile-field {
      position: relative;
    }

    .mobile-field input {
      width: 100%;
      padding: 14px 44px 14px 44px;
      font-size: 1rem;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.06);
      color: var(--text);
      transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    }

    .mobile-field input:focus {
      outline: none;
      border-color: var(--brand1);
      box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
      background: rgba(255, 255, 255, 0.08);
    }

    .mobile-icon-left,
    .mobile-icon-right {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 1rem;
      color: var(--brand1);
    }

    .mobile-icon-left {
      left: 14px;
    }

    .mobile-icon-right {
      right: 14px;
      cursor: pointer;
      color: var(--muted);
    }

    .mobile-actions {
      margin-top: 14px;
    }

    .mobile-btn {
      width: 100%;
      padding: 14px;
      border: 0;
      border-radius: 14px;
      font-weight: 800;
      letter-spacing: 0.3px;
      background: radial-gradient(circle at 0% 0%, var(--brand1), var(--brand2));
      color: #081217;
      box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
    }

    .mobile-links {
      margin-top: 12px;
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
      color: var(--muted);
    }

    .mobile-links a {
      color: var(--brand1);
      text-decoration: none;
    }

    /* Visibilidad por breakpoints */
    @media (max-width: 640px) {
      .login-desktop {
        display: none;
      }

      .login-mobile {
        display: flex;
      }
    } 