
        /* Reset y estilos base */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
            /* background: linear-gradient(135deg, #0b2b3f 0%, #1a4a6f 100%); */
            background: linear-gradient(135deg, #0b2b3f 0%, #ced3d7 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        /* Contenedor principal del login */
        .login-container {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 32px;
            box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.3);
            width: 100%;
            max-width: 440px;
            padding: 40px 32px;
            transition: transform 0.2s ease;
            backdrop-filter: blur(2px);
            border: 1px solid rgba(255,255,255,0.2);
        }

        .login-container:hover {
            transform: translateY(-5px);
        }

        h2 {
            text-align: center;
            color: #0b2b3f;
            font-weight: 600;
            font-size: 28px;
            margin-bottom: 12px;
            letter-spacing: -0.3px;
        }

        .subtitle {
            text-align: center;
            color: #5a6e7c;
            font-size: 14px;
            margin-bottom: 32px;
            border-bottom: 1px solid #e2e8f0;
            display: inline-block;
            width: auto;
            margin-left: auto;
            margin-right: auto;
            padding-bottom: 8px;
        }

        /* Inputs */
        input {
            width: 100%;
            padding: 14px 18px;
            margin-bottom: 20px;
            border: 1px solid #cbd5e1;
            border-radius: 24px;
            font-size: 15px;
            transition: all 0.2s;
            background-color: #f9fafc;
            outline: none;
        }

        input:focus {
            border-color: #1a4a6f;
            box-shadow: 0 0 0 3px rgba(26, 74, 111, 0.2);
            background-color: white;
        }

        /* Botón principal */
        button[onclick="login()"] {
            width: 100%;
            background: linear-gradient(90deg, #0f3b4f, #1f6392);
            border: none;
            padding: 14px;
            border-radius: 40px;
            color: white;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 8px;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        button[onclick="login()"]:hover {
            background: linear-gradient(90deg, #0c3142, #185a83);
            transform: scale(1.01);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        /* Mensajes de error/éxito */
        #mensaje {
            text-align: center;
            margin-top: 10px;
            margin-bottom: 16px;
            font-size: 13px;
            font-weight: 500;
            min-height: 40px;
            padding: 6px 12px;
            border-radius: 40px;
            background-color: #fff3e0;
            color: #b45309;
            display: none;
        }

        #mensaje.error {
            display: block;
            background-color: #fee2e2;
            color: #b91c1c;
        }

        #mensaje.success {
            display: block;
            background-color: #dcfce7;
            color: #15803d;
        }

        /* Modal para crear clave */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            transition: all 0.2s;
        }

        .modal-content {
            background: white;
            max-width: 400px;
            width: 90%;
            padding: 28px 24px;
            border-radius: 32px;
            text-align: center;
            box-shadow: 0 30px 40px rgba(0, 0, 0, 0.3);
            animation: fadeInUp 0.2s ease-out;
        }

        .modal-content h3 {
            font-size: 24px;
            margin-bottom: 20px;
            color: #0b2b3f;
        }

        .modal-content input {
            margin-bottom: 24px;
        }

        .modal-content button {
            background: #1f6392;
            border: none;
            padding: 12px 24px;
            border-radius: 40px;
            color: white;
            font-weight: 600;
            margin: 5px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .modal-content button:hover {
            background: #0e4a6e;
        }

        .modal-content button:last-child {
            background: #cbd5e1;
            color: #1e293b;
        }

        .modal-content button:last-child:hover {
            background: #b0c0d2;
        }

        /* Animación */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive */
        @media (max-width: 480px) {
            .login-container {
                padding: 32px 24px;
            }
            h2 {
                font-size: 24px;
            }
            input {
                padding: 12px 16px;
            }
        }

        /* Logo opcional */
        .logo-login {
            text-align: center;
            margin-bottom: 20px;
        }
        .logo-login img {
            max-width: 140px;
            height: auto;
        }
    