:root {
            --bg-body: #0a1128;
            --glass: rgba(255, 255, 255, 0.03);
            --border-glass: rgba(255, 255, 255, 0.1);
            --text-main: rgba(255, 255, 255, 0.9);
            --text-muted: rgba(255, 255, 255, 0.6);
            --main: #1d4ed8;
            --main-dark: #1e3a8a;
            color-scheme: dark;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background-color: var(--bg-body);
            background-image: radial-gradient(at 10% 10%, rgba(29, 78, 216, 0.15) 0px, transparent 50%), radial-gradient(at 90% 90%, rgba(10, 17, 40, 0.5) 0px, transparent 50%);
            margin: 0;
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: var(--text-main);
            box-sizing: border-box;
            overflow-x: hidden;
            padding: 80px 20px;
        }

        .login-card {
            background: var(--glass);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 40px;
            border-radius: 28px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
            width: 100%;
            max-width: 380px;
            text-align: center;
            border: 1px solid var(--border-glass);
            z-index: 2;
            transition: all 0.5s ease;
        }

        .login-card h2 {
            margin: 0 0 5px 0;
            font-weight: 900;
            font-size: 28px;
            text-transform: uppercase;
            letter-spacing: -0.5px;
            color: #ffffff;
            /* Blanco puro, sin tinte azulado */
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .login-card p {
            color: var(--text-muted);
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 35px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }

        .form-group label {
            display: block;
            font-size: 11px;
            font-weight: 800;
            color: var(--text-muted);
            text-transform: uppercase;
            margin-bottom: 8px;
            letter-spacing: 1px;
        }

        .form-input {
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            border: 1px solid var(--border-glass);
            font-family: 'Montserrat', sans-serif;
            font-size: 14px;
            font-weight: 700;
            background: rgba(0, 0, 0, 0.2);
            color: white;
            outline: none;
            transition: all 0.2s;
            box-sizing: border-box;
        }

        .form-input:focus {
            border-color: var(--main);
            background: rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
        }

        .btn-login {
            width: 100%;
            background: var(--main);
            color: white;
            border: none;
            padding: 16px;
            border-radius: 12px;
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
            font-size: 14px;
            text-transform: uppercase;
            cursor: pointer;
            /* La sombra absorbe el color de la marca automáticamente */
            box-shadow: 0 10px 20px -5px color-mix(in srgb, var(--main) 50%, transparent);
            transition: all 0.3s;
            margin-top: 10px;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 25px -5px color-mix(in srgb, var(--main) 70%, transparent);
            background: linear-gradient(135deg, color-mix(in srgb, var(--main) 20%, white), var(--main));
        }

        .forgot-pass {
            display: block;
            margin-top: 20px;
            font-size: 12px;
            color: var(--text-muted);
            text-decoration: none;
            font-weight: 700;
            cursor: pointer;
            transition: 0.2s;
        }

        .forgot-pass:hover {
            color: white;
        }

        #error-msg,
        #success-msg {
            font-size: 12px;
            font-weight: 700;
            margin-top: 15px;
            display: none;
            padding: 10px;
            border-radius: 8px;
        }

        #error-msg {
            color: #ff2a5f;
            background: rgba(255, 42, 95, 0.1);
            border: 1px solid rgba(255, 42, 95, 0.2);
        }

        #success-msg {
            color: #00e5ff;
            background: rgba(0, 229, 255, 0.1);
            border: 1px solid rgba(0, 229, 255, 0.2);
        }

        .btn-install {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            color: white;
            border: 1px solid var(--border-glass);
            padding: 14px;
            border-radius: 12px;
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
            font-size: 13px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 25px;
            display: none;
        }

        .helikon-watermark {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            margin-top: 35px;
            opacity: 0.7;
            transition: all 0.3s ease;
            z-index: 2;
        }

        .helikon-watermark:hover {
            opacity: 1;
            transform: translateY(-2px);
        }

        .helikon-watermark img {
            width: 80px;
            height: auto;
            border-radius: 50%;
            object-fit: cover;
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .helikon-watermark span {
            color: white;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
        }

        .contact-link:hover {
            background: rgba(255, 255, 255, 0.08) !important;
            color: white !important;
            border-color: rgba(255, 255, 255, 0.2) !important;
            transform: translateY(-2px);
        }

        #splash-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-body);
            z-index: 999999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            transition: opacity 0.5s ease, visibility 0.5s;
        }

        .splash-logo {
            width: 140px;
            height: 140px;
            object-fit: cover;
            margin-bottom: 30px;
            background: transparent;
            /* Quitamos el fondo blanco */
            border-radius: 50%;
            padding: 0;
            /* Quitamos el padding para que el logo toque el borde oscuro */
            box-sizing: border-box;
            border: 4px solid color-mix(in srgb, var(--main), #000 50%);
            animation: pulseSphere 2.5s ease-in-out infinite;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        }

        @keyframes pulseSphere {
            0% {
                transform: translateY(0) scale(1);
                filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
            }

            50% {
                transform: translateY(-10px) scale(1.05);
                filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.6));
            }

            100% {
                transform: translateY(0) scale(1);
                filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
            }
        }

        .splash-text {
            font-family: 'Montserrat', sans-serif;
            font-weight: 900;
            font-size: 14px;
            letter-spacing: 4px;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        /* =========================================
           🚀 FIX DE OVERFLOW Y ESTRANGULAMIENTO MÓVIL
           ========================================= */
        @media screen and (max-width: 480px) {
            body {
                padding: 20px 15px; 
                justify-content: flex-start; /* Previene el corte superior permitiendo scroll natural */
            }
            .login-card {
                padding: 30px 20px;
                margin: auto 0; /* Centrado vertical inteligente que respeta los bordes */
                width: 100%;
                box-sizing: border-box;
            }
            .brand-logo-container {
                min-height: auto !important;
                margin-bottom: 15px !important;
            }
            .login-card h2 {
                font-size: 24px;
            }
            .login-card p {
                margin-bottom: 20px;
            }
            footer {
                margin-top: auto; /* Empuja el footer al fondo del scroll */
                padding: 20px 10px 10px;
            }
            .helikon-watermark {
                margin-top: 20px;
            }
            .helikon-watermark img {
                width: 60px; /* Reducción sutil para economizar espacio */
            }
        }